Hi, I am running ZD 1.0.4 on XP and am trying the examples on the Zimlet Developers Guide. All are working apart from the Tab Zimlets. When I deploy the Simple Tab zimlet (by copying to the _dev directory and refreshing the browser) the Tab doesn't appear. Using Mozilla FireBug I get an error reported as follows : this.createApp() is not a function. The error is at line 37 of com_zimbra_example_simpletab.
js :
Code:
this._simpleAppName = this.createApp("Simple Tab App", "zimbraIcon", "A simple app in a new tab"); Just wondering if anyone has encountered this before - it doesn't make sense as ZmZimletBase() is being extended :
Code:
/**
* Defines the Zimlet handler class.
*
*/
function com_zimbra_example_simpletab_HandlerObject() {
}
/**
* Makes the Zimlet class a subclass of ZmZimletBase.
*
*/
com_zimbra_example_simpletab_HandlerObject.prototype = new ZmZimletBase();
com_zimbra_example_simpletab_HandlerObject.prototype.constructor = com_zimbra_example_simpletab_HandlerObject;
/**
* This method gets called by the Zimlet framework when the zimlet loads.
*
*/
com_zimbra_example_simpletab_HandlerObject.prototype.init =
function() {
this._simpleAppName = this.createApp("Simple Tab App", "zimbraIcon", "A simple app in a new tab");
};
Thanks in advance,
Jonathan