No data available in table

No data available in table

murbulatmurbulat 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 :smile:

This question has an accepted answers - jump to answer

Answers

  • murbulatmurbulat Posts: 3Questions: 1Answers: 0

    ** dataSrc: function ( data ) {
    data = JSON.parse(data);
    return data;
    }**

    I also found such a function here, but it didn't help

  • allanallan Posts: 63,523Questions: 1Answers: 10,473 Site admin
    Answer ✓

    Looks like the JSON data is a data object inside another data object. Use dataSrc: 'data.data': https://live.datatables.net/bihawepu/5691/edit .

    Allan

  • murbulatmurbulat Posts: 3Questions: 1Answers: 0

    Yes, you are a genius, my friend. Thank you very much, I've been puzzling over this task for 2 days.

Sign In or Register to comment.