Jump to content

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).
Link to comment
https://forums.phpfreaks.com/topic/21278-colspan-null-in-ff-when-display-block/
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="";
This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

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.