Also remember that you can use #invoke instead of #each for these kind
of things.
div.invoke('setStyle', {display: 'block'});
Martin
On 3/19/07, Colin Mollenhour <[EMAIL PROTECTED]> wrote:
>
> Does AAA_get_elementsByClassName extend each element in the resulting
> array? If it is an alias for a prototype function, are you using the
> latest version available? 1.5.1_rc1 had some problems not extending
> elements that were fixed in rc2.
>
> Colin
>
> zio budda wrote:
> > Hi, I have this piece of code:
> >
> > var div = AAA_getElementsByClassName(document,
> > "div",cosa.toLowerCase()+"_0_"+id);
> > div.each(function(item){item.setStyle({display:'block'});});
> >
> > It works on FF, but not with IE. The error is in the second line:
> > properties or method not supported.
> > The "div" variable contains the value to "show" so the first line works.
> >
> > Where is my error ?
> >
> > Tnx.
> >
> > M.
> >
> > --
> > Michel 'ZioBudda' Morelli [EMAIL PROTECTED]
> > http://www.ziobudda.net ICQ: 58351764
> > http://www.phpbook.it FAX: 0291390660
> > http://www.ajaxblog.it TEL: 3939890025
> >
> > >
> >
> >
>
>
> >
>
--
burnfield.com/martin
--~--~---------~--~----~------------~-------~--~----~
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 [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.com/group/rubyonrails-spinoffs?hl=en
-~----------~----~----~----~------~----~------~--~---