Accessing Ajax data outside datatables
Accessing Ajax data outside datatables
jerrymouse
Posts: 1Questions: 1Answers: 0
I have a simple datatable instance:
var table = $("#table-elem").DataTable({
...
"ajax": {
"url":Services.apiUrl,
"dataSrc": "data"
},
...
})
I need to access the "data" that was returned in ajax function. How can I do that?
Something like:
var ajaxJson = table.ajax.data()
//play with ajaxJson
This discussion has been closed.