URLs No Longer Working After Sort... BUT In IE Only - Other Browsers Not Affected
URLs No Longer Working After Sort... BUT In IE Only - Other Browsers Not Affected
Not quite sure why this is happening, but in a DataTable that is created from static content, URLs that are in a sortable column become "unclickable" after an initial sort or filter. I'm aware about live() events, but why would it work fine in Firefox and not in IE?
Has anyone else experienced this? I even tried v1.8.0 to see if perhaps it was our 1.7.6 version that was causing it, and it exhibits the same behavior. Any help/advice is appreciated.
Has anyone else experienced this? I even tried v1.8.0 to see if perhaps it was our 1.7.6 version that was causing it, and it exhibits the same behavior. Any help/advice is appreciated.
This discussion has been closed.
Replies
Allan
It's just really odd that plain hyperlinks are not working after sort or filtering, and only in IE - Firefox seems to behave as expected.
Oh well, hopefully the Developers Tools in IE will yield some information...
Allan
Allan
We originally were using the datatable with the fixed header and scrolling enabled, and some of our users complained (the header columns wouldn't align perfectly with the data columns), so we commented out the values for sScrollY and bScrollCollapse, but we were also using the fnAdjustColumnSizing() to adjust the columns - by removing the call to that function, it caused the issue to go away (again, only in IE - works fine in Firefox). Here's the script code we were using:
$(document).ready( function() {
var oTable = $('#IPTable3').dataTable( {
//"sScrollY": "600px",
//"bScrollCollapse": true,
"sPaginationType": "full_numbers",
"aaSorting": [[1,'asc']],
"bStateSave": true
} );
$(window).bind('resize', function () {
oTable.fnAdjustColumnSizing();
} );
} );
Once commented out/removed, the issue goes away:
$(document).ready( function() {
$('#IPTable3').dataTable( {
//"sScrollY": "600px",
//"bScrollCollapse": true,
"sPaginationType": "full_numbers",
"aaSorting": [[1,'asc']],
"bStateSave": true
} );
//$(window).bind('resize', function () {
//oTable.fnAdjustColumnSizing();
} );
} );
Might be good to know for future reference (I really am shocked no-one ever came upon this issue until now...
By the way, this was with JQuery 1.4.2 and DataTables 1.7.6.
Thanks again for the help and the troubleshooting ideas!
Allan
Right - we disabled scrolling since the header columns did not sometimes align with the table body columns (since the fixed header effect is done by cloning the thead into a div and fixing it place I would guess), we disabled the scrolling so the header and body were as one. We were using this as a fluid-width table, so hence why we were using the function if someone resized the window.