Tuesday 15 February 2011

javascript - dataTable plugin, reload table, fnDestroy() destroys the wrapper AND its content : "Node was not found" -



javascript - dataTable plugin, reload table, fnDestroy() destroys the wrapper AND its content : "Node was not found" -

well, after ajax utilize datatable.fndestroy() , reinitialize table refresh info (for sorting, etc...)

it worked days ago, simple table , can't again. have error:

node not found next line error in datable.js : "orig.insertbefore( table, settings.ntablereinsertbefore );->line 8853"

it's unusual because can initialise every tables :

$('table[id*="classement"]').each(function(){ if (condition){ $(this).datatable({ columndefs: [ {type: 'non-empty-string', targets: [1,2]} ], "bautowidth": false, aocolumns : [ { "swidth": "7%"}, { "swidth": "65%"}, { "swidth": "20%"}, { "swidth": "8%"} ] }); } else if{ ... ... etc... });

but if seek after delete them, have previous error in console (recent browser version):

$('table[id*="classement"]').each(function(){ $(this).datatable().fndestroy(); });

so can't reinitialize tables because destroy having issue.

same "bdestroy":true,

edit : in fact works, destroys 'div wrapper' , content, there way maintain table after destroy default behaviour ?

see these screen :

and after

$('#classement_ownranking_music').datatable().fndestroy();

so destroys wrapper table. idea?

javascript jquery datatables

No comments:

Post a Comment