Prevent new callback until server has responded
Prevent new callback until server has responded
errorknees
Posts: 10Questions: 0Answers: 0
I have set up a custom "processing" indicator like this:
[code]
var grid = $('#grid').dataTable({
"fnServerData": function (sSource, aoData, fnCallback) {
showLoader();
etc etc.
},
"fnDrawCallback": function (oSettings) {
hideLoader();
}
[/code]
How do I prevent the user from performing any actions on the DataTable until it has been redrawn? Is there a built-in way to do this or do I need to add my own code that will 'return false;' on any click until the DataTable is ready for a new action..
[code]
var grid = $('#grid').dataTable({
"fnServerData": function (sSource, aoData, fnCallback) {
showLoader();
etc etc.
},
"fnDrawCallback": function (oSettings) {
hideLoader();
}
[/code]
How do I prevent the user from performing any actions on the DataTable until it has been redrawn? Is there a built-in way to do this or do I need to add my own code that will 'return false;' on any click until the DataTable is ready for a new action..
This discussion has been closed.
Replies
Allan
[code]
$(document).ready(function () {
$('#wrapper').click(function (e) {
return false;
});
});
[/code]
How could I use the built-in processing element?