ajax.reload() doesnt seem to work even .DataTable() is observed
ajax.reload() doesnt seem to work even .DataTable() is observed
winry
Posts: 2Questions: 1Answers: 0
ajax.reload() does not seem to work? Am i doing something wrong? Did I put the codes on their right places? Am new to datatables so yeah :( thanks in advance!
var datatableInit = function() {
$('#table-user').DataTable({
"order": [[ 4, "desc" ]]
});
datatableInit.ajax.reload();
};
$(function() {
datatableInit();
})
}).apply( this, [ jQuery ]);
This discussion has been closed.
Answers
You haven't defined an
ajax
option - therefore there is no Ajax to reload!Allan
ok sorry but how do i do that? i added
under "order"
but i get an error message:
DataTables warning: table id=table-user - Ajax error