No data available in table
No data available in table
murbulat
Posts: 3Questions: 1Answers: 0
Hi all.
Help solve the problem.
My** <script> ** looks like this:
https://live.datatables.net/bihawepu/5690/edit
The link itself that I use gives such data:
{"data":
{"data":
[
{"id":"164589","fio":"Famas","dt......}
How do I make a query correctly so that the table works?
Thanks
This question has an accepted answers - jump to answer
Answers
** dataSrc: function ( data ) {
data = JSON.parse(data);
return data;
}**
I also found such a function here, but it didn't help
Looks like the JSON data is a
data
object inside anotherdata
object. UsedataSrc: 'data.data'
: https://live.datatables.net/bihawepu/5691/edit .Allan
Yes, you are a genius, my friend. Thank you very much, I've been puzzling over this task for 2 days.