<code>YourPlugin.prototype.onPageTimer =  function(page){ }</code>
 
<code>YourPlugin.prototype.onPageTimer =  function(page){ }</code>
   −
=== Getting Started... ===
+
== Getting Started... ==
 
I will try to explain here how to start developing WDTVExt plugins. I'm by no means a 'programmer' and learned javascript just recently while dicovering WDTVExt. So if I'm doing thins wrong here, please correct me.
 
I will try to explain here how to start developing WDTVExt plugins. I'm by no means a 'programmer' and learned javascript just recently while dicovering WDTVExt. So if I'm doing thins wrong here, please correct me.
   −
==== What can we do with WDTVExt? (v0.23.5) ====
+
=== What can we do with WDTVExt? (v0.23.5) ===
 
* File [https://developer.mozilla.org/en/SpiderMonkey/File_object]
 
* File [https://developer.mozilla.org/en/SpiderMonkey/File_object]
 
** read and write files (can also be used to execute shell commands and retrieve the output)
 
** read and write files (can also be used to execute shell commands and retrieve the output)
 
** maniplulate menu and submenu items (title, image, focusedImage, handler, ...)
 
** maniplulate menu and submenu items (title, image, focusedImage, handler, ...)
   −
==== What can't we do with WDTVExt? (v0.23.5) ====
+
=== What can't we do with WDTVExt? (v0.23.5) ===
 
* create entire custom pages
 
* create entire custom pages
 
* create menu items that link to a folder or file
 
* create menu items that link to a folder or file
 
Now, let's start creating our first WDTVext plugin: '''Example.plugin.js'''
 
Now, let's start creating our first WDTVext plugin: '''Example.plugin.js'''
   −
==== Example Plugin ====
+
=== Example Plugin ===
   −
===== Basic Plugin Skeleton =====
+
==== Basic Plugin Skeleton ====
    
Every Plugin strats with some basic plugin constructor:
 
Every Plugin strats with some basic plugin constructor:
    
function ExamplePlugin(path) {
 
function ExamplePlugin(path) {
        this.rootPath = path;
+
    this.rootPath = path;
        traceln("Plugin.Example:  base path is " + this.rootPath);
+
    traceln("Plugin.Example:  base path is " + this.rootPath);
 
}
 
}
    
All occurances of '''ExamplePlugin''' are of course to be substituted with the name of your plugin.
 
All occurances of '''ExamplePlugin''' are of course to be substituted with the name of your plugin.
   Exception encountered, of type "Error"