JavaScript and client side scripting.
Moderator: General Moderators
JellyFish
DevNet Resident
Posts: 1361 Joined: Tue Feb 14, 2006 7:18 pm
Location: San Diego, CA
Post
by JellyFish » Sun Oct 29, 2006 1:34 am
What's the dom heirarchy for table? how do I is there an array in the table object called tableData and tableRow??? How do I select certant <td>'s in a table? How do I select a specific table?
Weirdan
Moderator
Posts: 5978 Joined: Mon Nov 03, 2003 6:13 pm
Location: Odessa, Ukraine
Post
by Weirdan » Sun Oct 29, 2006 3:14 am
Get a dom inspector and see yourself.
For IE:
Here
For FF: it's built in, just select appropriate installation options.
JellyFish
DevNet Resident
Posts: 1361 Joined: Tue Feb 14, 2006 7:18 pm
Location: San Diego, CA
Post
by JellyFish » Sun Oct 29, 2006 5:46 pm
What's a dom inspector? I don't understand.
Weirdan
Moderator
Posts: 5978 Joined: Mon Nov 03, 2003 6:13 pm
Location: Odessa, Ukraine
Post
by Weirdan » Sun Oct 29, 2006 5:50 pm
Todd_Z
Forum Regular
Posts: 708 Joined: Thu Nov 25, 2004 9:53 pm
Location: U Michigan
Post
by Todd_Z » Sun Oct 29, 2006 6:18 pm
firebug extension for firefox.
JellyFish
DevNet Resident
Posts: 1361 Joined: Tue Feb 14, 2006 7:18 pm
Location: San Diego, CA
Post
by JellyFish » Sun Oct 29, 2006 6:30 pm
How do I download DOM Inspector for Firefox???
JellyFish
DevNet Resident
Posts: 1361 Joined: Tue Feb 14, 2006 7:18 pm
Location: San Diego, CA
Post
by JellyFish » Sun Oct 29, 2006 6:43 pm
I downloaded firebug. The inspector still doesn't tell me what line of code I have to write to select a specific <td> of a table in javascript.
n00b Saibot
DevNet Resident
Posts: 1452 Joined: Fri Dec 24, 2004 2:59 am
Location: Lucknow, UP, India
Contact:
Post
by n00b Saibot » Sun Oct 29, 2006 6:49 pm
well for starters - you select a table element by using any of the getElement*() functions that suits your cause. then you can access its rows & cells by using its .rows & correspoding .row[idx].cells collections.