joquius Posted September 19, 2006 Share Posted September 19, 2006 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). Quote Link to comment https://forums.phpfreaks.com/topic/21278-colspan-null-in-ff-when-display-block/ Share on other sites More sharing options...
nogray Posted September 20, 2006 Share Posted September 20, 2006 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=""; Quote Link to comment https://forums.phpfreaks.com/topic/21278-colspan-null-in-ff-when-display-block/#findComment-95472 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.