Strange issue with IE8 with 1.9.4
Strange issue with IE8 with 1.9.4
BigBadJock
Posts: 2Questions: 0Answers: 0
I'm having a strange issue with IE8 - our corporate standard (at least it's not IE6) - in _
fnCalculateColumnWidths ( oSettings ) line 3565 -
[code]
var iColums = oSettings.aoColumns.length;
[/code]
In IE9, IE10, Firefox and Chrome for my table it returns 8, in IE8 it returns 9, and then proceeds to throw up errors around line 3654
[code]
nThs[i - iCorrector].style.width = "";
[/code]
with property is undefined.
Only happening in IE8 in IE8 standards mode. There don't seem to be any obvious differences. I'm using twitter bootstrap.
[code]
var asInitVals = new Array();
$(document).ready(function () {
var oTable = $('#main').dataTable(
{
"bPaginate": true,
"bLengthChange": true,
"bFilter": true,
"bSort": true,
"bInfo": true,
"bProcessing": true,
"bServerSide": true,
"bStateSave": true,
"sAjaxSource": "/UserProfile/GetUserProfiles",
"aaSorting": [[2, 'asc'], [1, 'asc']],
"aoColumns": [null, null, null, null, null, null, null,
{
"sName": "x",
"fnRender": function (oObj) {
return "" +
"Edit";
}
}, ],
"sDom": "<'row'<'span6'l><'span6'f>r>t<'row'<'span6'i><'span6'p>>",
"sPaginationType": "bootstrap",
"oLanguage": { "sLengthMenu": "_MENU_ records per page" },
"sScrollY": "400px",
});
});
[/code]
fnCalculateColumnWidths ( oSettings ) line 3565 -
[code]
var iColums = oSettings.aoColumns.length;
[/code]
In IE9, IE10, Firefox and Chrome for my table it returns 8, in IE8 it returns 9, and then proceeds to throw up errors around line 3654
[code]
nThs[i - iCorrector].style.width = "";
[/code]
with property is undefined.
Only happening in IE8 in IE8 standards mode. There don't seem to be any obvious differences. I'm using twitter bootstrap.
[code]
var asInitVals = new Array();
$(document).ready(function () {
var oTable = $('#main').dataTable(
{
"bPaginate": true,
"bLengthChange": true,
"bFilter": true,
"bSort": true,
"bInfo": true,
"bProcessing": true,
"bServerSide": true,
"bStateSave": true,
"sAjaxSource": "/UserProfile/GetUserProfiles",
"aaSorting": [[2, 'asc'], [1, 'asc']],
"aoColumns": [null, null, null, null, null, null, null,
{
"sName": "x",
"fnRender": function (oObj) {
return "" +
"Edit";
}
}, ],
"sDom": "<'row'<'span6'l><'span6'f>r>t<'row'<'span6'i><'span6'p>>",
"sPaginationType": "bootstrap",
"oLanguage": { "sLengthMenu": "_MENU_ records per page" },
"sScrollY": "400px",
});
});
[/code]
This discussion has been closed.
Replies
Thanks.
Once I removed the trailing comma after the last mData, in my case, the problem went away. I knew it was a configuration error as my other grids with a similar setup were working in IE8 mode.