You can try replacing the option class with className. On Oct 30, 1:08 pm, "Brandon Casci" <[EMAIL PROTECTED]> wrote: > Thanks was it. Thanks for the help. Though a slew of new IE issues are > popping up now, fun fun!. So it's probably a good and safe practice to quote > all the element property names, right? > > On Thu, Oct 30, 2008 at 12:02 PM, T.J. Crowder <[EMAIL PROTECTED]>wrote: > > > > > Hi, > > > Just put 'class' in quotes, it's a reserved word in JScript. The > > example in the docs[1] has it in quotes for that reason, I suspect. > > [1]http://www.prototypejs.org/api/element > > > HTH, > > -- > > T.J. Crowder > > tj / crowder software / com > > > On Oct 30, 3:49 pm, Brandon <[EMAIL PROTECTED]> wrote: > > > Internet Explorer throws 'expected identifier, string or number' when > > > it loads a JS script that contains a new Element statement, like this: > > > > new_song_info_div = new Element('div', {class : 'song_info'}); > > > > It took me a while to figure out this was the issue too, because the > > > script debugger that comes with Windows kept crashing when it caught > > > an exception. Real nice. Eventually I got the debugger to behave > > > though. > > > > It seems that something is out of scope between my JS file and > > > prototype. This works as expected in other browsers. Damn You IE!!!! > > > Maybe it should be called AYE-EEEEEE. > > > > Has anyone else shared this frustration, and if so how did you fix it?
--~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Prototype & script.aculo.us" group. To post to this group, send email to prototype-scriptaculous@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/prototype-scriptaculous?hl=en -~----------~----~----~----~------~----~------~--~---