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
-~----------~----~----~----~------~----~------~--~---

Reply via email to