Server-side Processing Table Not Showing Data

Server-side Processing Table Not Showing Data

jycflo20jycflo20 Posts: 3Questions: 1Answers: 0

Link to test case: https://www.mypetchild.com/dog-training-test/
Description of problem: Hello, I've been following the server-side processing example in this URL (https://datatables.net/examples/data_sources/server_side) but can't get the data to show in my table. Could anyone point me in the right direction? The server-processing.php file seems to be working fine as I can see the json table.

Thanks

This question has an accepted answers - jump to answer

Answers

  • tangerinetangerine Posts: 3,365Questions: 39Answers: 395

    What amendments have you made to the server-side script?

  • kthorngrenkthorngren Posts: 21,311Questions: 26Answers: 4,948

    You have $('commandlist').DataTable( { and <table id="commandlist". The selector you used needs to be changed to $('#commandlist').DataTable( {. Note the leading #.

    Kevin

  • tangerinetangerine Posts: 3,365Questions: 39Answers: 395

    Don't know how I missed that. :#

  • kthorngrenkthorngren Posts: 21,311Questions: 26Answers: 4,948

    I've done that many times myself :smile:

    Kevin

  • jycflo20jycflo20 Posts: 3Questions: 1Answers: 0

    Thanks so much for looking into this Kevin. I updated the selector but it's still not populating the data.

  • jycflo20jycflo20 Posts: 3Questions: 1Answers: 0

    For the server-side script, I added the sql details and removed the start_date array. Everything else is the same as the default version.

  • kthorngrenkthorngren Posts: 21,311Questions: 26Answers: 4,948
    Answer ✓

    Looks like its working:

    Maybe you need to clear your browser's cache.

    Kevin

This discussion has been closed.