brokerflow
02-27-2009, 05:09 AM
can someone please tell me in firefox or safari why when i click the 'show' link in the code below the 'span' cell loses the colspan=2 i.e. it goes back to a single column span.
<table border=1 width=100%>
<tr><td>col 1</td><td>col2</td></tr>
<tr><td colspan=2 id='SPANTEST' style='display:none' bgcolor=red>span</td></tr>
<table>
<table>
<tr><td OnMouseDown="javascript:self.document.getElementById('SPANTEST').style.display = 'block'">show</td></tr>
</table>
works perfectly fine in i.e. but screws up in firefox/safarai. Also if i change it so i don't hide the cell (i.e remove the 'display:none') it originally spans across both cells but as soon as the javascript changes the style i flips back to single colspan
what am i doing wrong ?
<table border=1 width=100%>
<tr><td>col 1</td><td>col2</td></tr>
<tr><td colspan=2 id='SPANTEST' style='display:none' bgcolor=red>span</td></tr>
<table>
<table>
<tr><td OnMouseDown="javascript:self.document.getElementById('SPANTEST').style.display = 'block'">show</td></tr>
</table>
works perfectly fine in i.e. but screws up in firefox/safarai. Also if i change it so i don't hide the cell (i.e remove the 'display:none') it originally spans across both cells but as soon as the javascript changes the style i flips back to single colspan
what am i doing wrong ?