bStateSave error 1.9.4

bStateSave error 1.9.4

crush123crush123 Posts: 417Questions: 126Answers: 18
edited November 2012 in DataTables 1.9
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]

Replies

  • allanallan Posts: 63,394Questions: 1Answers: 10,450 Site admin
    PLease link use to a page showing the problem. As you can see in the example, bStateSave should work fine in 1.9.x: http://datatables.net/release-datatables/examples/basic_init/state_save.html

    Allan
  • crush123crush123 Posts: 417Questions: 126Answers: 18
    Hi 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
  • crush123crush123 Posts: 417Questions: 126Answers: 18
    Can't account for it working on my host and not on my local server, but it looks like it could be a possible jquery/mootools conflict.

    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
  • crush123crush123 Posts: 417Questions: 126Answers: 18
    Actually, scratch the last comment. Nothing to do with mootools.

    It seems as though the problem is down to chrome browser. Looks OK in IE8 and FF
This discussion has been closed.