Can we specify colspan= some value so that it will span any number of cols

Hi,

I am inserting a <TR><TD>ABCD</TD></TR>

html chunk dynamically into a dynamic HTML string before every row in the chunk.But if the row in original chunk is split into columns my added row is not spanning the whole width of table [its gonna happen as i have not specified colspan='?' in <TD> tag].

And as the following row may contain any number of columns i want to know that whether is there any way to specify colspan="some value" so that it can span any number of columns in following row.

e.g. suppose original HTML table chunk is as follows

<TABLE>

<TR>

<TD colspan=2>Row1</TD>

</TR>

<TR>

<TD>Row2 Cell1</TD>

<TD>Row2 Cell2</TD>

</TR>

</TABLE>

and i am modifying this to

<TABLE>

<TR><TD>ABCD</TD></TR>

<TR>

<TD colspan=2>Row1</TD>

</TR>

<TR><TD>ABCD</TD></TR>

<TR>

<TD>Row2 Cell1</TD>

<TD>Row2 Cell2</TD>

</TR>

</TABLE>

thanks in advance.

[1242 byte] By [Glimpsea] at [2007-11-27 7:38:26]
# 1
http://www.w3.org/TR/html4/struct/tables.html#adef-colspan
RaymondDeCampoa at 2007-7-12 19:19:00 > top of Java-index,Enterprise & Remote Computing,Web Tier APIs...