Zimbra offers Open Source email server software and shared calendar for Linux and the Mac
Go Back   Zimbra :: Forums > Zimbra Collaboration Suite > Zimlets

Welcome to the Zimbra :: Forums!
Welcome, if you would like to post a comment please register. We also encourage you to explore all things Zimbra with our team and members of the community.

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 03-25-2010, 08:13 AM
Junior Member
 
Posts: 6
Default Error : this.createApp is not a function

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
Reply With Quote
  #2 (permalink)  
Old 03-29-2010, 02:01 AM
Zimlet Guru & Moderator
 
Posts: 288
Default

Since createApp has been implemented recently (with the version 6), it is possible that it is not implemented in the version of ZD you are using.

You should verify your file ZmZimletBase.js.
Reply With Quote
  #3 (permalink)  
Old 03-30-2010, 08:41 AM
Junior Member
 
Posts: 6
Default

Thanks a lot for that help. You were right - the createApp function is not in the version of ZmZimletBase.js that comes with Zimbra Desktop 1_0_4 (this is the latest version of ZD available for download so I presume that the createApp function is on the version of ZmZimletBase.js that comes with ZCS ...)
Reply With Quote
Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes


Similar Threads

Why Join?

Registering let's you ask questions, makes it easier to search, displays any files attached to posts, and notifies you about replies.

blog.zimbra.com




 

SEO by vBSEO ©2011, Crawlability, Inc.