Displaying 3 results from an estimated 3 matches for "knak".
Did you mean:
kanak
2006 Mar 01
0
RE: manipulate <td>''s and their content by grabbingtheir classNames
...s).each(function(tr)
{
$A(tr.childNodes).each(function(td)
{
myTDs.push(td);
});
});
-----Original Message-----
From: rails-spinoffs-bounces-1W37MKcQCpIf0INCOvqR/iCwEArCW2h5@public.gmane.org
[mailto:rails-spinoffs-bounces-1W37MKcQCpIf0INCOvqR/iCwEArCW2h5@public.gmane.org] On Behalf Of
troels knak-nielsen
Sent: Wednesday, March 01, 2006 12:28 PM
To: rails-spinoffs-1W37MKcQCpIf0INCOvqR/iCwEArCW2h5@public.gmane.org
Subject: Re: [Rails-spinoffs] manipulate <td>''s and their content by
grabbingtheir classNames
<p align=\"left\"><b><font face=\"Arial\&...
2006 Mar 01
2
RE: manipulate <td>''s and their content bygrabbingtheir 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
2006 Jan 23
4
Enumerable
Hi and sorry if this has already been discussed. I''m new on theese
lists, and I couldn''t find a way to search through them.
I have been looking at the sources of script.aculo.us and I''m rather
impressed by the Enumerable class. What I don''t get is why you choose
to extend Array.prototype with this addon. It seems like a rather
intrusive thing to do, if the code