1.7 beta2 bug only on IE7/8
1.7 beta2 bug only on IE7/8
badwolf77
Posts: 1Questions: 0Answers: 0
Hello,
I found this strange bug, that seems to appear only in IE7 and IE8.
If I create a table with vertical scrolling and put this table inside a with "display:none" style (to show later, or inside a dialog box), IE detect a Javascript error on line 4713 of "jquery.datatables.js"
This is the line in your js code:
oSettings.nTable.style.width = (oSettings.nTable.offsetWidth-oSettings.iScrollWidth)+"px";
Everything works fine in google chrome and firefox.
[code]
$(document).ready(function() {
oTable = $('#sample').dataTable(
{
"sScrollY" : "250px",
"bProcessing": true,
"bPaginate": false,
"sDom": '<"top"f>rt<"bottom"ilp><"clear">',
"aoColumns": [
{ "sWidth": "100px", "bSortable": false },
{ "sWidth": "400px", "bSortable": false }
]
}
);
});
code
descr
a
b
[/code]
I found this strange bug, that seems to appear only in IE7 and IE8.
If I create a table with vertical scrolling and put this table inside a with "display:none" style (to show later, or inside a dialog box), IE detect a Javascript error on line 4713 of "jquery.datatables.js"
This is the line in your js code:
oSettings.nTable.style.width = (oSettings.nTable.offsetWidth-oSettings.iScrollWidth)+"px";
Everything works fine in google chrome and firefox.
[code]
$(document).ready(function() {
oTable = $('#sample').dataTable(
{
"sScrollY" : "250px",
"bProcessing": true,
"bPaginate": false,
"sDom": '<"top"f>rt<"bottom"ilp><"clear">',
"aoColumns": [
{ "sWidth": "100px", "bSortable": false },
{ "sWidth": "400px", "bSortable": false }
]
}
);
});
code
descr
a
b
[/code]
This discussion has been closed.
Replies
if (oSettings.nTable.style.width) {
//allans code
}
it worked for me!