DataTables AJAX source - how to re-fetch the data?

DataTables AJAX source - how to re-fetch the data?

afarberafarber Posts: 53Questions: 0Answers: 0
edited May 2012 in General
Hello,

at my pages like this one: http://preferans.de/user.php?id=DE10992
(debug code http://debug.datatables.net/ehexav )
I use CDN DataTable 1.9.0 to draw a table with an AJAX source
and everything works brilliantly, I'm even able to add
"external filtering" with the checkboxes atop of my table:

[code]
$.fn.dataTableExt.afnFiltering.push(
function(oSettings, aData, iDataIndex) {
// ...skipped...
return $('#usual_box').is(':checked');
}
);

$('#pass_box,#misere_box,#usual_box').click(function() {
cardsTable.fnDraw();
});
[/code]

but I'm missing one last thing: I'd like to add a button
which would reload the cardsTable from its AJAX source.

What is the function for that please? Can't find it yet

Thank you
Alex

Replies

  • afarberafarber Posts: 53Questions: 0Answers: 0
    Nevermind I've found the fnReloadAjax()
  • allanallan Posts: 63,542Questions: 1Answers: 10,476 Site admin
    That's the one :-)

    For anyone else: http://datatables.net/plug-ins/api#fnReloadAjax

    Allan
This discussion has been closed.