processing phase...
processing phase...
luisrortega
Posts: 79Questions: 6Answers: 1
How can I know if the dataTable object is waiting for server data?
I have a timer refreshing the data every so often, if the server happens to be busy, I don't want my code to call another reload.
Visually I see the processing popup, however programmatically I'm not sure how to validate so before calling reload again!
Tks,
Luis
This discussion has been closed.
Replies
Hi Luis,
There isn't an API method you can query to determine if there is an Ajax request going on, but what you could do is listen for
preXhr
andxhr
. Set a flag inpreXhr
which you can check - if it is true then there is an Ajax request in progress, then clear the flag inxhr
.Allan