server-side Processing true or false?

server-side Processing true or false?

nin_boundnin_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

Answers

  • allanallan Posts: 61,959Questions: 1Answers: 10,158 Site admin
    Answer ✓

    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 in xhr.

    Allan

This discussion has been closed.