Quantcast
Channel: Free community support — DataTables forums
Viewing all articles
Browse latest Browse all 35587

ajax.reload() firing callback before DOM completely loaded

$
0
0

We are having an issue where the callback provided to ajax.reload() is being called before the DOM is completely reloaded. The reason I know this is because in the callback we attach click events and they stop working. If I wrap the reload in setTimeout() to delay the execution by 5 seconds then it works. Any ideas of why this is happening? I never have this issue with the initial page load using the "initComplete" function.


Viewing all articles
Browse latest Browse all 35587

Trending Articles