All records displaying from datasource
All records displaying from datasource
I have removed everything except the basics from my script and all of the records from my datasource are still displaying, even though it is only suppose to be displaying 10 rows. None of the search and sorting functionality is working either, so i'm guessing there is a bigger issue that i'm just overlooking. Any help would be appreciated.
You can ignore the table headers as I changed the data in my json file. I have ran my json file through jsonlint.com and it is valid. I have also printed out all of the data into a <tbody> and removed the serverSide stuff and it works as expected, so it has to be something with the serverSide, or a syntax error. Nothing is showing up in the Console as a parse error.
Debugging Script: http://debug.datatables.net/irawev
URL: http://apps.wku.edu/asa/mgtint/admin/app/hdtools/oucampus/unlock_files/dsp_list.php
Code from dsp_list:
<script type="text/javascript">
$(document).ready(function() {
$('#example').dataTable( {
"processing": true,
"serverSide": true,
"ajax": {
"url": "http://apps.wku.edu/asa/mgtint/admin/app/hdtools/oucampus/unlock_files/inc_datasource.json",
},
"columns": [
{ "data": "name" },
{ "data": "asset_type" },
{ "data": "type" },
{ "data": "saved_time_format" }
]
} );
} );
</script>
This question has an accepted answers - jump to answer
Answers
Ok, just in case someone else has this issue. I'm just pulling from a json file, not doing server side processing. I just removed "serverSide" and it works.
Hi,
Thanks for posting back that you've found and fixed the issue! Great to hear.
Regards,
Allan