Is there a way to determine when ajax.reload() is complete?

Is there a way to determine when ajax.reload() is complete?

DevIcyDevIcy Posts: 4Questions: 2Answers: 0

I am running a function to detect the changes made after a table is redrawn, but since it's running asynchronous it will not work properly unless I set timers... not a great solution. Is there a way I can call table.ajax.reload(); and then once that is complete run a function?

This question has an accepted answers - jump to answer

Answers

  • allanallan Posts: 63,455Questions: 1Answers: 10,465 Site admin
    Answer ✓

    Yes, ajax.reload() has a callback function option that you can use.

    Allan

  • DevIcyDevIcy Posts: 4Questions: 2Answers: 0
    edited April 2018

    [edited]

    Thank you Allan, I initially tried that API but didn't get it to work, upon a retry it is now working

This discussion has been closed.