IE Runtime error during fnAdjustColumnSizing()
IE Runtime error during fnAdjustColumnSizing()
wxkevin
Posts: 11Questions: 0Answers: 0
I am having a horrible time in IE 7/8 with respect to using fnAdjustColumnSizing(). This does not occur in Firefox 6.
I am receiving the following error: [quote]Line: 5658 Error: 'style' is null or not an object"[/quote]. After selecting No to debug I then get [quote]Line: 4251 Error: 'oFeatures' is null or not an object[/quote].
I can't give a link but here is the code:
[code]
Behaviour.register({
'#dateCountTable' : function() {
var dateCountTable = jQuery('#dateCountTable').dataTable( {
"bFilter": false,
"bInfo": false,
"bPaginate": false,
"sScrollY": "183px",
"aaSorting": [[ 2, "desc" ]],
"aoColumns": [
null,
{ "sType": "date" },
null
],
"sDom": 'T<"clear">lfrtip',
"oTableTools": {
"sRowSelect": "single",
"aButtons": []
}
});
jQuery(window).bind("resize", function() {
dateCountTable.fnAdjustColumnSizing();
}
},
'#countViewTable' : function() {
var countViewTable = jQuery('#countViewTable').dataTable( {
"bFilter": false,
"bInfo": false,
"bPaginate": false,
"sScrollY": "183px",
"aaSorting": [[ 0, "asc" ]],
"sDom": 'T<"clear">lfrtip',
"oTableTools": {
"sRowSelect": "single",
"aButtons": []
}
});
jQuery(window).bind("resize", function() {
countViewTable.fnAdjustColumnSizing();
}
},
'#dateCountViewTable' : function() {
var dateCountViewTable = jQuery('#dateCountViewTable').dataTable( {
"bFilter": false,
"bInfo": false,
"bPaginate": false,
"sScrollY": "183px",
"aaSorting": [[ 1, "desc" ]],
"aoColumns": [
null,
{ "sType": "date" },
null
],
"sDom": 'T<"clear">lfrtip',
"oTableTools": {
"sRowSelect": "single",
"aButtons": []
}
});
jQuery(window).bind("resize", function() {
dateCountViewTable.fnAdjustColumnSizing();
}
}
});
[/code]
Some things to note about the above code:
1. The above code is hand typed in sinc ecode resides on another network
2. I have properly defined the "date" sorting methods and they work as expected
The IE runtime errors noted occur when I resize the IE browser window which of course calls the fnAdjustColumnSizing() method for all 3 tables which are co-located on the same page.
Any thoughts?
I am receiving the following error: [quote]Line: 5658 Error: 'style' is null or not an object"[/quote]. After selecting No to debug I then get [quote]Line: 4251 Error: 'oFeatures' is null or not an object[/quote].
I can't give a link but here is the code:
[code]
Behaviour.register({
'#dateCountTable' : function() {
var dateCountTable = jQuery('#dateCountTable').dataTable( {
"bFilter": false,
"bInfo": false,
"bPaginate": false,
"sScrollY": "183px",
"aaSorting": [[ 2, "desc" ]],
"aoColumns": [
null,
{ "sType": "date" },
null
],
"sDom": 'T<"clear">lfrtip',
"oTableTools": {
"sRowSelect": "single",
"aButtons": []
}
});
jQuery(window).bind("resize", function() {
dateCountTable.fnAdjustColumnSizing();
}
},
'#countViewTable' : function() {
var countViewTable = jQuery('#countViewTable').dataTable( {
"bFilter": false,
"bInfo": false,
"bPaginate": false,
"sScrollY": "183px",
"aaSorting": [[ 0, "asc" ]],
"sDom": 'T<"clear">lfrtip',
"oTableTools": {
"sRowSelect": "single",
"aButtons": []
}
});
jQuery(window).bind("resize", function() {
countViewTable.fnAdjustColumnSizing();
}
},
'#dateCountViewTable' : function() {
var dateCountViewTable = jQuery('#dateCountViewTable').dataTable( {
"bFilter": false,
"bInfo": false,
"bPaginate": false,
"sScrollY": "183px",
"aaSorting": [[ 1, "desc" ]],
"aoColumns": [
null,
{ "sType": "date" },
null
],
"sDom": 'T<"clear">lfrtip',
"oTableTools": {
"sRowSelect": "single",
"aButtons": []
}
});
jQuery(window).bind("resize", function() {
dateCountViewTable.fnAdjustColumnSizing();
}
}
});
[/code]
Some things to note about the above code:
1. The above code is hand typed in sinc ecode resides on another network
2. I have properly defined the "date" sorting methods and they work as expected
The IE runtime errors noted occur when I resize the IE browser window which of course calls the fnAdjustColumnSizing() method for all 3 tables which are co-located on the same page.
Any thoughts?
This discussion has been closed.