Callback with Datatable.ajax.reload
Callback with Datatable.ajax.reload
![anema](https://secure.gravatar.com/avatar/e9ae0f513447b24ccac3ce36cfce7257/?default=https%3A%2F%2Fvanillicon.com%2Fe9ae0f513447b24ccac3ce36cfce7257_200.png&rating=g&size=120)
Hi I am trying to execute a statement after datable_name.ajax.reload(null, false);
Below is mycode:
datable_name.ajax.reload(null, false);
$('#div_id').removeClass().addClass("text-green").html("Message").fadeIn();
My code is working, but the second line is not waiting for the complete execution of data table reload.
I want second line should execute only after complete the execution of first line.
How I can do that. is there any way I can user call back in reload.?
This discussion has been closed.
Answers
According to the
ajax.reload()
docs the first parameter is the callback. Replacenull
with your callback.Kevin