Jump to content

Archived

This topic is now archived and is closed to further replies.

joquius

Colspan null in FF when display: block

Recommended Posts

Ok I have the following issue:
I have a certain, table  ::), in which when you click on a row, which has for the sake of the example 7 columns, that row is changed to display: none; and an expanded row replaces it by setting it's display to block (JS of course). Now the problem is that when I use this in IE6 it works  :o. Hurray IE. But in FF what happens is that the replacement row only fills the first column of the table (out of 7). Then when the old row is displayed again (in the same page load) it also fills only the first column. I guess this must just be some FF issue in rendering rows after the table has already been rendered, but seeing as it works in IE6 I was wondering if any of you know of a work around? If not I would appreciate it if you could tell me what you normally do to get an expandable row (with JS).

Share this post


Link to post
Share on other sites
If you post your code, that would help. But firefox will have issue if you set the row (or table) style display:none; outside the tag. For example, if you set a class

[code]
.hide_tr {display:none;}
[/code]
[code]
<tr class="hide_tr"><td>.....
[/code]

When you change it back to display:block, FF will mess it up. You'll need to set the display property directly in the tag
[code]
<tr style="display:none;">.....
[/code]
and instead of changing it to display="block" in the js, make it change to display="";

Share this post


Link to post
Share on other sites

×

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.