I've been getting consistently repeated IE6 javascript errors. If you strip the Demo just down to the rows Apple, Orange, Melon and Banana.
Then in IE6 (at least in IETester version of IE6), on the 16th time that I re-sort the Quantity column or the 8th time that I re-sort the Fruit column I get a 'Number Expected' error from the line of code that does the a > b comparison. The issue seems to be these lines:
a = $(a).text();
b = $(b).text();
a is being over-written by itself, sometimes it seems that this results in the var a becoming null or a blank string (I'm not sure which).
If you replace the lines with :
var a1 = $(a).text(),
b1 = $(b).text();
And then use a1 and b1 instead of a and b, then the errors stop occurring.
Here's the code I have that gives me these errors:
I've been getting consistently repeated IE6 javascript errors. If you strip the Demo just down to the rows Apple, Orange, Melon and Banana.
Then in IE6 (at least in IETester version of IE6), on the 16th time that I re-sort the Quantity column or the 8th time that I re-sort the Fruit column I get a 'Number Expected' error from the line of code that does the a > b comparison. The issue seems to be these lines:
a
is being over-written by itself, sometimes it seems that this results in the vara
becoming null or a blank string (I'm not sure which).If you replace the lines with :
And then use
a1
andb1
instead ofa
andb
, then the errors stop occurring.Here's the code I have that gives me these errors: