How to address a variable coming from Ajax
How to address a variable coming from Ajax
Even though I'm not really understanding jQuery and Ajax, I now have a working datatables/ajax based page. For one specific new requirement, I have added a variable "row_no_from_ajax" (containing a specific row number) to the Ajax output header (following draw,recordsTotal,recordsFiltered) and I now need to make Datatables jump to the page containing that row (I added some code in the DrawCallback function for that) - but I don't know how to address that variable. Can anyone help?
Replies
You can use
ajax.json()
to get the latest JSON response the get the value from there.Kevin
thank you!