Ahh... Haven't run up against that yet. Although I also completely
disregard Gecko/Safari and other totally crappy, useless, browsers :-).

</cynicism>

 

-----Original Message-----
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of
Gregory Hill
Sent: Wednesday, March 01, 2006 1:47 PM
To: rails-spinoffs@lists.rubyonrails.org
Subject: RE: [Rails-spinoffs] manipulate <td>'s and their
contentbygrabbingtheir classNames

> Or...
> 
> var myTDs = new Array();
> $A($("main").childNodes).each(function(tr)
> {
>       $A(tr.childNodes).each(function(td)
>       {
>               myTDs.push(td);
>       });
> });

You'll probably want to make sure the tr elements are TR tags and the
same for the td's, as empty text nodes are inserted randomly by the
gecko engine (and maybe others).

Greg
_______________________________________________
Rails-spinoffs mailing list
Rails-spinoffs@lists.rubyonrails.org
http://lists.rubyonrails.org/mailman/listinfo/rails-spinoffs

The information transmitted in this electronic mail is intended only for the
person or entity to which it is addressed and may contain confidential,
proprietary, and/or privileged material.  Any review, retransmission, 
dissemination or other use of, or taking of any action in reliance upon,
this information by persons or entities other than the intended recipient
is prohibited. If you received this in error, please contact the sender and
delete the material from all computers.

_______________________________________________
Rails-spinoffs mailing list
Rails-spinoffs@lists.rubyonrails.org
http://lists.rubyonrails.org/mailman/listinfo/rails-spinoffs

Reply via email to