No Content in Datatable using AJAX.
No Content in Datatable using AJAX.
Vpiolin
Posts: 2Questions: 1Answers: 1
Hi everyone,
I have some issue with dataTable and AJAX.
There is my configuration : http://zupimages.net/viewer.php?id=17/27/blsv.png
When I display my data with the success of my Ajax request, i have all of my row. But datatable just display "No data available in the table".
There is something I miss ?
Thanks for your help.
This question has an accepted answers - jump to answer
This discussion has been closed.
Answers
common issue for new users of DataTables is that DataTables expects data to come back in the form of {data:[your data]}. If you are sending your data back as [your data], you would need to set the dataSrc option to "".
I found my issue..
My array data that I return didn't start by 0, it starts at 1. And now it's working
Thanks for your return