Detecting if datatables is busy processing an ajax request
Detecting if datatables is busy processing an ajax request
dazusu
Posts: 1Questions: 0Answers: 0
Is there a method/bool available which will indicate whether or not my instance of datatables is in the process of "loading" data from an ajax request; I have a jquery event for hovering over an element within my datatable cells; and if this is triggered during a reload of data via ajax (for example on a column sort, or page change) - it basically screws up.
I want to detect if datatables is busy reloading/sorting data before I proceed with my "on hover" event.
I want to detect if datatables is busy reloading/sorting data before I proceed with my "on hover" event.
This discussion has been closed.
Replies
like this:
[code]
function (data, callback, settings) {
$.ajax({
"url": "..."
"data": data,
"success": function (json) {
YourTrigger();
callback( json );
},
"error": function (xhr, error, thrown) {
YourTrigger();
return false;
}
});
}
[/code]
Allan