server side processing not working
server side processing not working
lhyx
Posts: 3Questions: 1Answers: 0
Office | Office | Office | Office | Office |
---|
{"recordsTotal":1,"recordsFiltered":1,"data":[["1","test","test","1","test"]],"draw":"1"}
TypeError: data is undefined
I have searched for hours. I can't get server side processing to work. Any help ?
This discussion has been closed.
Answers
here's the code: https://pastebin.com/jY7mNQE1
What version of Datatables are you using?
You have
$('#datatable').dataTable(
which might not be right. See the first FAQ here:https://datatables.net/faqs/index#Most-common-FAQs
Fixing this may or may not solve your issue but will fix future issues if you are using a current version of Datatables.
Kevin
I'm using version 1.10.15.
I changed the code to $('#datatable').DataTable({ but the error persists.
The JSON response looks ok. Can you provide a link to a page showing the issue or maybe debugger output for troubleshooting?
https://datatables.net/manual/tech-notes/10
Kevin