Results 1 to 3 of 3

Thread: Problem with preferences after dwploy zimlet

  1. #1
    Join Date
    Jul 2010
    Posts
    2
    Rep Power
    5

    Default Problem with preferences after dwploy zimlet

    Hello and sorry for my english.

    I develop a simple zimlet that recover some data after a call to another server.
    It works, It works in ZD and ZCS both.

    But I have a problem: after deploy this zimlet, when I click in Preferences Tab this crash.

    There is this javascript error:

    Code:
    next.getHtmlElement is not a function
    if (next) Dwt.delClass(next.getHtmlElement(), DwtToolBar._NEXT_PREV_RE, DwtToolBar.SELECTED_NEXT);
    This is 378th row of DwtToolBar.js.
    If I undeploy my zimlet Preferences Tab don't crash.

    Someone can help me?

    Thak you

  2. #2
    Join Date
    Mar 2011
    Posts
    57
    Rep Power
    4

    Default

    I am facing the same problem
    After deploying the zimlet that we are developing, the "Preferences" tab never ends loading (the circle animation keeps spinning, if I click again on Preferences tab, only save and cancel button appear) If I undeploy it, Preferences returns available.
    I receive this error on the javascript console:
    Code:
    [11:00:19.734] TypeError: t.getHtmlElement is not a function @ http://ServerIP/zimbra/js/Startup1_1_all.js.zgz?v=120105101317:17839
    Has anyone ever solved this problem?

  3. #3
    Join Date
    Mar 2011
    Posts
    57
    Rep Power
    4

    Default

    Problem solved There was an error in the javascript code, in the definition of a function using Array.prototype.
    Changing from:
    Code:
    Array.prototype.arrRemove = function() {
        var what, a = arguments, L = a.length, ax;
        while (L && this.length) {
            what = a[--L];
            while ((ax = this.indexOf(what)) !== -1) {
                this.splice(ax, 1);
            }
        }
        return this;
    };
    To

    Code:
    com_zimlet_zim.prototype._removeArrayItem = function(arr) {
        var what, a = arguments, L = a.length, ax;
        while (L > 1 && arr.length) {
            what = a[--L];
            while ((ax= arr.indexOf(what)) !== -1) {
                arr.splice(ax, 1);
            }
        }
        return arr;
    };
    The preferences tab problem disappeared. We debugged it using Chrome javascript console; it took some time because the zimlet continued to work properly, the only problem was with the preferences tab.

Similar Threads

  1. Replies: 0
    Last Post: 12-23-2010, 02:56 AM
  2. Replies: 21
    Last Post: 02-04-2010, 09:06 AM
  3. [SOLVED] Salesforce Zimlet Problem
    By cryptogram in forum Zimlets
    Replies: 4
    Last Post: 10-12-2009, 01:25 PM
  4. Post instsallation problems
    By Assaf in forum Installation
    Replies: 14
    Last Post: 01-29-2007, 10:38 AM
  5. Strange asterisk zimlet problem
    By simonellistonball in forum Installation
    Replies: 2
    Last Post: 08-23-2006, 08:43 AM

Posting Permissions

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