Datatables table shows "loading..." forever
Datatables table shows "loading..." forever
schnibitz
Posts: 15Questions: 0Answers: 0
Hi everyone,
Working on getting a sample datatables table working. Been working from this example:
http://datatables.net/release-datatables/examples/data_sources/server_side.html
Seems pretty well laid out, but I removed all the stuff in the table body. After some doing, the table finally shows, but I'm not seeing the data. Instead it shows "loading..." forever. When I run the server_processing.php script, I get the following:
{"sEcho":0,"iTotalRecords":"5","iTotalDisplayRecords":"5","aaData":[["Gecko2","Mozilla","Windows","3.0","A"],["Gecko","Mozilla","Windows","3.0","A"],["Gecko","Mozilla","Windows","3.0","A"],["Webkit","Safari","Apple","7.0","A"],["Webkit","Opera","Linux","7.0","B"]]}
I don't have a huge dataset. I was just putting in a few rows to get something going, but I know that server_processing.php does work because of the above, yet I can't understand why it's showing "loading...". Any help would be GREATLY appreciated. I think I'm VERY close to getting this puppy working.
-S
Working on getting a sample datatables table working. Been working from this example:
http://datatables.net/release-datatables/examples/data_sources/server_side.html
Seems pretty well laid out, but I removed all the stuff in the table body. After some doing, the table finally shows, but I'm not seeing the data. Instead it shows "loading..." forever. When I run the server_processing.php script, I get the following:
{"sEcho":0,"iTotalRecords":"5","iTotalDisplayRecords":"5","aaData":[["Gecko2","Mozilla","Windows","3.0","A"],["Gecko","Mozilla","Windows","3.0","A"],["Gecko","Mozilla","Windows","3.0","A"],["Webkit","Safari","Apple","7.0","A"],["Webkit","Opera","Linux","7.0","B"]]}
I don't have a huge dataset. I was just putting in a few rows to get something going, but I know that server_processing.php does work because of the above, yet I can't understand why it's showing "loading...". Any help would be GREATLY appreciated. I think I'm VERY close to getting this puppy working.
-S
This discussion has been closed.
Replies
"sAjaxSource":
line. I didn't make sure that the path was correct. Sorry for any inconvenience.
-S