Whoops -- that should have said
In InternetExplorer getElementById incorrectly returns elements based
on the name attribute as well as the id attribute.

On Jan 16, 10:47 am, Tom <twalp...@gmail.com> wrote:
> Since the code thats failing is so simple, I'm going to guess that
> 'note_cursor' is actually the name of an element in your document and
> not its id.   getElementById (which $ calls) incorrectly returns
> elements based on the name attribute as well as the id attribute.
> Because of this if in your document you have
> <input name='note_cursor' .... >  then $('note_cursor') will return
> the input element in IE6 but in FF it will not.
>
> On Jan 16, 12:33 am, Felcita Edwin <felcita.rajakum...@gmail.com>
> wrote:
>
> > When i try to run a sample to understand how prototype.js works i see
> > a problem with Fire Fox. Following is the code
>
> > var d = $('note_cursor');
> > d.addClassName('active');
>
> > FF throws an error saying $('note_cursor') has no properties.
>
> > While this works fine in IE6.
>
> > Can any one please help to debug this.
>
> > Thanks
--~--~---------~--~----~------------~-------~--~----~
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 
prototype-scriptaculous+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/prototype-scriptaculous?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to