DataTables AJAX source - how to re-fetch the data?
DataTables AJAX source - how to re-fetch the data?
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
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
This discussion has been closed.
Replies
For anyone else: http://datatables.net/plug-ins/api#fnReloadAjax
Allan