fnReloadAjax wait for finish

fnReloadAjax wait for finish

hugomeanahugomeana Posts: 18Questions: 0Answers: 0
edited December 2012 in General
Hello Allan,

I need that the execution of the following alert, it will be after the fnReloadAjax, but when de alert appear, the fnReloadAjax not be finished.
How can I do If I want that the alert show when de fnReloadAjax finish please??

[code]
oTable.fnReloadAjax();

alert('OK!!');
//I need here will be executed after fnReloadAjax
...
...
...
[/code]

Thank you!

Replies

  • allanallan Posts: 63,523Questions: 1Answers: 10,473 Site admin
    Second parameter for fnReloadAjax is a callback function that is executed after the load: http://datatables.net/plug-ins/api#fnReloadAjax
  • hugomeanahugomeana Posts: 18Questions: 0Answers: 0
    Thanks again!!
This discussion has been closed.