Patrick,
Thanks for your very fast (and correct) answer.
It is working now.
Danilo.
--- Patrick Gostovic <pgostovic gmail.com> wrote:
> Try $$('*[myType]').
>
> On 30-Apr-07, at 4:41 PM, Danilo Luiz Rheinheimer
> wrote:
>
> >
> > Hi,
> >
> > I have a very simple JavaScript code.
> > It works fine on Firefox 2.0 but fails on IE
> 6.0.
> >
> > The error happens on this line of code :
> >
> > var comps = $$('[myType]');
> >
> > The error is message is :
> >
> > 'undefined' is null or it is not an object
> >
> > on line 2429 char 29.
> >
> > I am using prototype 1.5.1_rc4.
> > The page to show the error is on the end of
this
> > file. Click the button to see the error message.
> >
> > Danilo.
> >
> > <html>
> > <head>
> > <script type="text/javascript"
> >
src="js/prototype.js"></script>
> > <script type="text/javascript">
> > function test() {
> > var comps = $$('[myType]');
> > alert('component list : '+comps);
> > }
> > </script>
> > </head>
> > <body>
> > <input type="text" id="edA"
myType="edit"/>
> > <input type="text" id="edB"
myType="edit"/>
> > <button
onclick="javascript:test()">Click
> me</button>
> > </body>
> > </html>
> >
> >
__________________________________________________
> > Do You Yahoo!?
> > Tired of spam? Yahoo! Mail has the best spam
> protection around
> > http://mail.yahoo.com
> >
> > >
>
>
>
>
>
__________________________________________________
Do You Yahoo!?
Tired of spam? Yahoo! Mail has the best spam protection
around
http://mail.yahoo.com
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the
Google Groups "Ruby on Rails: Spinoffs" group.
To post to this group, send email to
rubyonrails-spinoffs googlegroups.com
To unsubscribe from this group, send email to
rubyonrails-spinoffs-unsubscribe googlegroups.com
For more options, visit this group at http://groups.google.com/group/rubyonrails-spinoffs?hl=
en
-~----------~----~----~----~------~----~------~--~---
|