Hide processing message in Javascript for "manual" refresh
Hide processing message in Javascript for "manual" refresh
Hi,
We are using the following JS code to refresh the table, which is working great. But we would like to hide the processing message during that refresh:
setInterval(function () {
ourtable.ajax.reload(null, false); // user paging is not reset on reload
}, 60000);
We have tried the following without success:
ourtable.processing = false
without success.
Is there a property we can set and value to pass to hide it during these "manual" refreshes?
Thanks.
Answers
You will need to set this in the Datatables initialization. Use either
processing
option or, if you are using thedom
option, remove ther
.Kevin
Thanks but that was my issue, we want to display it on first load, it's just the subsequent refreshes where we did not want to.
I have achieved this just now anyway by using Javascript (JQuery) to remove the class that shows the processing indicator (a spinner in our case) before refresh.