[thelist] DOM node question

Tom Dell'Aringa pixelmech at yahoo.com
Fri Nov 14 15:33:01 CST 2003


Hi,

I have a table row with 3 cells. I have a function that has just
received a reference to one of the cells as a parameter.

I want to know the index number of that cell in that row. For example
if the middle row below is the cell we are talking about:

+---+---+---+
|   | x |   |
+---+---+---+

Then I want to know that the index is 1. I know I can get a reference
to the row like so:

theTableRow = objectCell.parentNode;

But I can't seem to get past that. I'm not sure I even need to do
that...

Tom

=====
http://www.pixelmech.com/ :: Web Development Services
http://www.DMXzone.com/ :: JavaScript Author / Every Friday!
http://www.thywordistruth.net/ :: Eternal Life

"I'll ho ho and ha ha you!" (Daffy Duck)


More information about the thelist mailing list