fnGetNodes - AJAX Environment
fnGetNodes - AJAX Environment
Using datatables with multiple pages of results with - say - a checkbox on each row. I need to be able to move between pages and check boxes, then hit "submit" and get them all (even ones not on the current page). This present a problem, however, since the only way to do that (based on my research) is by something like this:
var myTable = $('#myTable').dataTable();
Then I can use myTable.fnGetNodes() however, because I'm in an ajax environment (and a couple of other factors), maintaining this assignment isn't convenient/possible.
Is there a way to "re-obtain" what .dataTables() returns so that you can call .fnGetNodes() without having assigned the initialization to a javascript variable?
Alternatively, can you "destroy" a dataTable via javascript to undo the datatabilization? :P
var myTable = $('#myTable').dataTable();
Then I can use myTable.fnGetNodes() however, because I'm in an ajax environment (and a couple of other factors), maintaining this assignment isn't convenient/possible.
Is there a way to "re-obtain" what .dataTables() returns so that you can call .fnGetNodes() without having assigned the initialization to a javascript variable?
Alternatively, can you "destroy" a dataTable via javascript to undo the datatabilization? :P
This discussion has been closed.