Welcome to WebmasterWorld Guest from 54.224.56.126

Forum Moderators: open

Message Too Old, No Replies

detect whether a table cell is set

     
8:08 am on Jan 4, 2005 (gmt 0)

New User

10+ Year Member

joined:Dec 29, 2004
posts:28
votes: 0


Hi

How can I detect whether a tablecell is previously set? I use two for-loops to construct the table. However, sometimes I use rowspan to make a cell span over several rows. Later interations in the for-loops should detect whether the current cell is contained in a previous rowspan, and take the appropriate action.

regards tores

12:29 pm on Jan 4, 2005 (gmt 0)

Senior Member

WebmasterWorld Senior Member 10+ Year Member

joined:Apr 15, 2004
posts:681
votes: 0


I'm not sure what you mean. Could you post an example with comments?
10:10 am on Jan 5, 2005 (gmt 0)

New User

10+ Year Member

joined:Dec 29, 2004
posts:28
votes: 0


Nevermind:) I found a solution using an array, where I for each coloumn in the table had a number telling how many rows I should skip. A cell (<td>-tag) is only printed if the corresponding element in the array is 0. Otherwise the corresponding element is decremented.

regards tores

 

Join The Conversation

Moderators and Top Contributors

Hot Threads This Week

Featured Threads

Free SEO Tools

Hire Expert Members