@Frederick -  in this case
$A(document.getElementsByClassName('classname')) would convert the
nodeList into an array (arrays are naturally extended via
their .prototype). In Firefox and other browsers all HTML elements
inherit from the Element.prototype so the elements would already be
extended.

@Peter - The fact that document.getElementsByClassName() is deprecated
is reason enough not to use it. Also it is painfully long to type
whereas $$() or element.select() are much easier.

 - JDD
--~--~---------~--~----~------------~-------~--~----~
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 [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/rubyonrails-spinoffs?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to