Server-side Processing Table Not Showing Data
Server-side Processing Table Not Showing Data
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
This discussion has been closed.
Answers
What amendments have you made to the server-side script?
You have
$('commandlist').DataTable( {and<table id="commandlist". The selector you used needs to be changed to$('#commandlist').DataTable( {. Note the leading#.Kevin
Don't know how I missed that.
I've done that many times myself
Kevin
Thanks so much for looking into this Kevin. I updated the selector but it's still not populating the data.
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.
Looks like its working:
Maybe you need to clear your browser's cache.
Kevin