bStateSave error 1.9.4
bStateSave error 1.9.4
crush123
Posts: 417Questions: 126Answers: 18
I have just installed 1.9.4 for a new project and am having probems with bStateSave.
I copied the initialisation code from another project as it works ok, (1.8.2), but if I include bStateSave, i get an error on datatables.js line 6705
Cannot read property 'asSorting' of undefined
If I omit the line, it is ok
[code]
jQuery.fn.dataTableExt.oPagination.iFullNumbersShowPages = 3;
$(document).ready(function() {
$('#example').dataTable( {
"sPaginationType": "full_numbers",
"bFilter": true,
"bAutoWidth": false,
"bStateSave": true,
"aoColumnDefs": [
{ "bSortable": false, "aTargets": [ 3 ] },
{ "sWidth": "60px", "aTargets": [ 3 ] }
] } );
} );
[/code]
I copied the initialisation code from another project as it works ok, (1.8.2), but if I include bStateSave, i get an error on datatables.js line 6705
Cannot read property 'asSorting' of undefined
If I omit the line, it is ok
[code]
jQuery.fn.dataTableExt.oPagination.iFullNumbersShowPages = 3;
$(document).ready(function() {
$('#example').dataTable( {
"sPaginationType": "full_numbers",
"bFilter": true,
"bAutoWidth": false,
"bStateSave": true,
"aoColumnDefs": [
{ "bSortable": false, "aTargets": [ 3 ] },
{ "sWidth": "60px", "aTargets": [ 3 ] }
] } );
} );
[/code]
This discussion has been closed.
Replies
Allan
I just uploaded the page to my remote host testing server, and it works !, (though it still fails on my local testing server.)
will update when i have more info
I changed my theme, omitting the mootools library for specific pages, and everything now seems to be working as it should.
Thanks for a great tool
It seems as though the problem is down to chrome browser. Looks OK in IE8 and FF