'preXhr.dt' not fired on first ajax request (after page load)
'preXhr.dt' not fired on first ajax request (after page load)
This question has an accepted answers - jump to answer
This discussion has been closed.
This question has an accepted answers - jump to answer
Answers
Have you attached it before the DataTable is initialised? Otherwise the event listener will be added after the first Ajax request has been sent.
Allan
Sorry, I didn't think location mattered.
so
Not
Looks good. DataTables does a number of things when you call it, including sending off the Ajax request if you configure it with
ajax
. Thedraw
event is another one to watch out for like this.Allan