Wrox Home  
Search P2P Archive for: Go

  Return to Index  

javascript_howto thread: Highlighting a row when clicked on


Message #1 by chrscote@9... on Tue, 28 Jan 2003 18:40:23
hi cris, try to pass the id tag of a td for example highlight("tdtagname") at this point you can trigger which cell or row's has
been selected.
Cornelio
 
 chrscote@9... wrote:First off, I'm having trouble finding the table row through the DOM. I'm 
pretty sure it has to do with the fact that I have tables within tables. 
Secondly, I have this row highlighting as part of an asp page. I want to 
be able to highlight the row after someone submits the page so the user 
can easily see their changes. I think that if I figure out how to do the 
first problem, I shouldn't be too bad with the second, but if you could 
please help, I'd appreciate it.

Here is the way I have my table set up...



Heading Info





Data
Data
...


Data
........






When I return to the page after submitting, I only know the number of the 
task I was editing, not the entire string. Right now, my javascript just 
takes the object (this) and sets the bgColor to the highlight color. How 
would I do this if I didn't have an object, as in when I return to the 
page after submission.

Chris

Chris


---------------------------------
Do you Yahoo!?
Yahoo! Mail Plus - Powerful. Affordable. Sign up now

  Return to Index