server-side Processing true or false?
server-side Processing true or false?
nin_bound
Posts: 10Questions: 6Answers: 1
Is there a way to tell if the datatable is currently processing?
I have a script that reloads the table if the user tabs back to the datatable, but if it's already processing, I don't want it to request it twice.
I know there's https://datatables.net/reference/event/processing
but I was looking for more of a
thing.on("tabback", function()
{
if(myDatatable != null && myDatatable.processing)
{
myDatatable.draw();
}
}
);
This question has an accepted answers - jump to answer
This discussion has been closed.
Answers
Good question - no not really I'm afraid. You could listen for
preXhr
and set a flag to indicate that DataTables is making a request and then clear it inxhr
.Allan