Without having a look at the rest of the code I can tell you without a doubt you are on the right track there. When using Object Notation Firefox has some weird parsing error which allows it to successfully parse an object that has the illegal syntax you just highlighted. Make no mistake though, only Firefox is capable of this, Opera probably chokes on it and I know Safari will for sure.

If you'd be developing using Eclipse it may help to open up that JS code in JSEclipse (Free download from Adobe), it has a reasonably well-behaving syntax checker, it might help you fixing up the syntax :)

Daniel Jue wrote:
When using the Palette component, I am getting a Javascript error in IE,

Line: 183
Char: 1
Error: Expected identifier, string or number
Code: 0

............
  reorderSelected : function(movers,  before) {
    movers.each (function(option) { this.selected.add(option, before);
}.bind(this));

    this.updateHidden();
    this.updateButtons();
  },
};

Line 183 is the line after the };

I think the extra comma after the end of the reorderSelected code block is
to blame.
For me it was causing an error in IE6 which prevented me from using the
select button in the Palette.

I removed the "extra" comma, but then when I highlight some items and click
the select button, I get a Type Mismatch error on the comma at the end of
this function:

  moveOption : function(option, to, atEnd) {
    var before = null;

    if (!atEnd) {
      var optionOrder = this.valueToOrderIndex[option.value];
      var candidate = $A(to.options).find(function (o) {
            return this.valueToOrderIndex[o.value] > optionOrder;
            }.bind(this));
      if (candidate) before = candidate;
    }

    to.add(option, before);
  },

Is the T5 Palette working fine for anyone using IE?
The IE Version I am testing is
6.0.2900.2180.xpsp_sp2_gdr.070227-2254


Everything works fine in Firefox, of course.


--
(   /'  _/_ __  _ _
|/|///)(/(/(//_(-/
       _/
E-mail: [EMAIL PROTECTED]
Website: http://www.windgazer.nl

"The trouble with doing something right the first time, is nobody
appreciates how difficult it was."
                                              -- Unknown Artist


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to