No data displayed - just says "Processing..."
No data displayed - just says "Processing..."
Hi -
New to datatables and trying to get some data to show via a PhP script I already have. Basically, the script runs - but it just says "processin.." no data is displayed. When I look at the developers tools/console in browser - I see there is a message (please see below)
I am guessing that the data is not displayed due to the error. I think I have the correct links in my html file, they are.,
<script src="https://code.jquery.com/jquery-3.3.1.js"></script>
<script src="https://cdn.datatables.net/1.10.19/js/jquery.dataTables.min.js"></script>
<link rel="stylesheet" href="https://cdn.datatables.net/1.10.19/css/jquery.dataTables.min.css">
Am I missing a file ? The data returned by my script is created with using generic PhP code from a database and does return valid json data (below is shown what is returned from the PhP file )
[{"DEVICEID":"ALAN"},{"DEVICEID":"BOB"}]
Any help would be much appreciated.
Thanks.
Answers
Hi @DaveLister ,
At a guess, I'd say the table hasn't been initialised correctly so can't find the expected values in the Json.
We're happy to take a look. As per the forum rules, if you could link to a running test case showing the issue we can offer some help. Information on how to create a test case (if you aren't able to link to the page you are working on) is available here.
Cheers,
Colin