jquery loader on processing
jquery loader on processing
adip singh
Posts: 1Questions: 1Answers: 0
I am using dataTable 1.10. In my application i have a loader which is called on every ajax request using
$(document).ajaxStart(function () {
$("#loader-wrapper").show();
});
$(document).ajaxComplete(function () {
$("#loader-wrapper").hide();
});
I tried to show this loader on preDrawCallback but not working. I don't want to show "processing...". I want to show this loader
"preDrawCallback": function () {
debugger
// gather info to compose a message
$("#loader-wrapper").show();
return true;
},
Please suggest a solution.
Regards,
Adip
Edited by Allan - Syntax highlighting. Details on how to highlight code using markdown can be found in this guide.
This discussion has been closed.
Answers
I would suggest you listen for the
processing
event rather than using the callbacks.Allan