View Single Post
Old 08-27-2009, 04:27 PM   PM User | #4
tomws
Senior Coder

 
tomws's Avatar
 
Join Date: Nov 2007
Location: Arkansas
Posts: 2,644
Thanks: 29
Thanked 330 Times in 326 Posts
tomws will become famous soon enoughtomws will become famous soon enough
Quote:
Originally Posted by AshtonHogan View Post
You see, I cannot set Id's because the table rows are dynamically generated and there will be an X amount.
Of course you can - and exactly because it's being generated dynamically.

Quote:
Originally Posted by AshtonHogan View Post
Is there no way of doing something similar to the line of code I mentioned above?

Code:
inputArea ABC = document.getElementById("MYTABLE")[x][y].innerText;
I was going to say no, but I had a look around the web and found something you might try:
Code:
/*edit me to fit your needs*/
document.getElementById('rt').rows[1].cells[0]
No idea if it'll work - never tried it or had any use for it myself. If not, you'll need to look at walking the document, I think. Have a look around for parentNode, childNodes, getElementsByTagName - all dumped into some nice loops, too.
__________________
Are you a Help Vampire?
tomws is offline   Reply With Quote