script5007 error in datatables with IE9
script5007 error in datatables with IE9
HeavyChevy
Posts: 7Questions: 0Answers: 0
First I would like to comment on DataTables, this is an awesome plugin which has already saved me many hours it would have taken to develop similar functionality on my own. Kudos to Allan and his team!
I have a table application that uses DataTables and TableTools which works fine in Firefox and Chrome, however under IE 9, I get a script5007 error indicating "Unable to set value of the property 'sSearch': object is null or undefined". I do not reference this variable anywhere in my code. The error is occurs in jquery.dataTables.js, line 1583 character 5.
Here is my initialization code:
[code]
var oTable="";
var sSponsor="";
$(document).ready(function() {
oTable = $('#example').dataTable ( {
"sDom": 'T<"clear">lfrtip',
"bJQueryUI": true,
"sPaginationType": "full_numbers",
"bProcessing": true,
"bServerSide": true,
"oTableTools": {
"sSwfPath": "/DataTables/extras/TableTools/media/swf/copy_cvs_xls_pdf.swf",
"aButtons": [
{
"sExtends": "copy",
"sButtonText": "Copy to clipboard"
},
{
"sExtends": "csv",
"sButtonText": "Export to CSV file"
},
{
"sExtends": "pdf",
"sButtonText": "Export to PDF file",
"sPdfOrienttation": "landscape",
"sPdfMessage": "Technical Information by Sponsor"
},
{
"sExtends": "xls",
"sButtonText": "Export to Excel file"
}
]
},
"aoColumnDefs": [ {"bSearchable": false, "bVisible": false, "aTargets": [0] } ],
"fnServerParams": function ( aoData ) {
aoData.push( { "name": "sTable", "value": "relationship" } );
},
"sAjaxSource": "get_table_info.php"
} );
$("#sponsors").change (function() {
sSponsor = $("#sponsors option:selected").text();
oTable.fnFilter(sSponsor, 1);
} );
} );
[/code]
As stated, this generates no errors when run in Chrome or Firefox but fails with IE9.
Any help or ideas would be greatly appreciated.
I have a table application that uses DataTables and TableTools which works fine in Firefox and Chrome, however under IE 9, I get a script5007 error indicating "Unable to set value of the property 'sSearch': object is null or undefined". I do not reference this variable anywhere in my code. The error is occurs in jquery.dataTables.js, line 1583 character 5.
Here is my initialization code:
[code]
var oTable="";
var sSponsor="";
$(document).ready(function() {
oTable = $('#example').dataTable ( {
"sDom": 'T<"clear">lfrtip',
"bJQueryUI": true,
"sPaginationType": "full_numbers",
"bProcessing": true,
"bServerSide": true,
"oTableTools": {
"sSwfPath": "/DataTables/extras/TableTools/media/swf/copy_cvs_xls_pdf.swf",
"aButtons": [
{
"sExtends": "copy",
"sButtonText": "Copy to clipboard"
},
{
"sExtends": "csv",
"sButtonText": "Export to CSV file"
},
{
"sExtends": "pdf",
"sButtonText": "Export to PDF file",
"sPdfOrienttation": "landscape",
"sPdfMessage": "Technical Information by Sponsor"
},
{
"sExtends": "xls",
"sButtonText": "Export to Excel file"
}
]
},
"aoColumnDefs": [ {"bSearchable": false, "bVisible": false, "aTargets": [0] } ],
"fnServerParams": function ( aoData ) {
aoData.push( { "name": "sTable", "value": "relationship" } );
},
"sAjaxSource": "get_table_info.php"
} );
$("#sponsors").change (function() {
sSponsor = $("#sponsors option:selected").text();
oTable.fnFilter(sSponsor, 1);
} );
} );
[/code]
As stated, this generates no errors when run in Chrome or Firefox but fails with IE9.
Any help or ideas would be greatly appreciated.
This discussion has been closed.