WebFX WebBoard
Message Thread:
View All Messages
Back to WebFX
 tablesort bug when hiding column with style="display:none;", Brian Knorr, March 25, 2003
     Re:tablesort bug when hiding column with style=, Erik Arvidsson, March 27, 2003
         Re:tablesort bug when hiding column with style=, Brian Knorr, March 27, 2003
                 Re:tablesort bug when hiding column with style - FIXED!, Andrus Moor, July 3, 2003
                     Re:tablesort bug when hiding column with style - FIXED!, Erik Arvidsson, July 4, 2003
                 Re:tablesort bug when hiding column with style= , Andrus Moor, July 2, 2003
                     Re:tablesort bug when hiding column with style=, Andrus Moor, July 2, 2003

Subject: Re:tablesort bug when hiding column with style= From: Andrus Moor Date: July 2, 2003

Brian,

I think that this fix MUST be added to sortable source code !

For quick fix I tried to use <td width=0>  instead using <td style="display:none">

but this did'nt work. Any idea how to emulate display:none style in IE ?

can you post the fix here or mail me to eetasoft@online.ee  if you fixed it?

I'm currently struggling with another sortable bug: sortable table in IE loses checkbox data..

See the todays message in this area.

Andrus.


 

From: Brian Knorr
Sent: April 2, 2003
Subject: Re:tablesort bug when hiding column with style=

Sounds good... thanks for looking into the issue.  I will try adding the getCellIndex method.

Thanks,

Brian


 

From: Erik Arvidsson
Sent: March 29, 2003
Subject: Re:tablesort bug when hiding column with style=

I found the problem. It is a bug in IE. The script works fine in all browsers except IE. The bug in IE is that cellIndex returns incorrect values when you hide cells.

From W3C:

cellIndex of type long, readonly
The index of this cell in the row, starting from 0. This index
is in document tree order and not display order.

From MSDN:

Collection indexes are in the source order of the HTML document.

IE does not even follow the MSDN documentation.


Possible fix:

Create a function that looks something like this (too slow to be used in the regular case)

function getCellIndex(c) {
if (ie)
LOOP and check display
else
return c.cellIndex
}

erik






Reply
Name: 
Email: 
Subject: 

Enter your reply to this message below. HTML tags are not supported but words that start with http://, ftp:// or mailto: are converted to links.


View All Messages
Back to WebFX