Server-Side return additional variable and print it on page
Server-Side return additional variable and print it on page
My Server-side return this json:
{
"draw": 1,
"recordsTotal": 0,
"recordsFiltered": 0,
"data": [...],
"myVariable": 0
}
How can I get myVariable in json and print it on my page?
This question has accepted answers - jump to:
This discussion has been closed.
Answers
One option is to use the
xhrevent.Kevin
Can you give me an short example of how to set it in
js?Does this help?
http://live.datatables.net/muzexoga/1/edit
Kevin
Yes. Thank you. I didn't observed, in your first answer, that
xhr | Eventis a link. Sorry and thank you again.