Results 1 to 3 of 3

Thread: Error : this.createApp is not a function

  1. #1
    jodonova is offline Junior Member
    Join Date
    Mar 2010
    Posts
    6
    Rep Power
    5

    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

  2. #2
    tdesorbaix is offline Zimlet Guru & Moderator
    Join Date
    Apr 2007
    Location
    Paris, France
    Posts
    367
    Rep Power
    8

    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.

  3. #3
    jodonova is offline Junior Member
    Join Date
    Mar 2010
    Posts
    6
    Rep Power
    5

    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 ...)

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. Import Function Missing in ZCS 5.0.11
    By Ryan Frantz in forum Administrators
    Replies: 8
    Last Post: 01-15-2009, 04:22 PM
  2. Connector Error
    By pfefferc in forum Evolution Connector
    Replies: 13
    Last Post: 03-27-2007, 09:28 AM
  3. Help me on onclick function
    By selvi in forum Zimlets
    Replies: 0
    Last Post: 11-30-2006, 04:51 AM
  4. Replies: 14
    Last Post: 12-22-2005, 04:59 PM
  5. Building native libraries on MacOS X
    By ajmas in forum Developers
    Replies: 3
    Last Post: 10-14-2005, 11:00 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •