sAjaxSource yields "No matching records found".
sAjaxSource yields "No matching records found".
supermango
Posts: 7Questions: 0Answers: 0
I am trying to recreate the sAjaxSource example and am running into problems.
Here is my JS:
$('#example').dataTable( {
"bProcessing": true,
"sAjaxSource": "/examples/examples_support/json_source.txt"
} );
The HTML:
Rendering engine
Browser
Platform(s)
Engine version
CSS grade
Loading data from server
Rendering engine
Browser
Platform(s)
Engine version
CSS grade
Part of the source.txt:
{ "aaData": [
["Trident","Internet Explorer 4.0","Win 95+","4","X"],
["Trident","Internet Explorer 5.0","Win 95+","5","C"],
["Trident","Internet Explorer 5.5","Win 95+","5.5","A"],
["Trident","Internet Explorer 6","Win 98+","6","A"],
The original jason_source.txt wouldn't validate on jsonlint.com so I replaced all the single quotes with double quotes. Anyhow, I have no idea what I'm doing wrong. The url for the source is fine. When I copy/paste, I can see the text just fine.
Any thoughts?
Here is my JS:
$('#example').dataTable( {
"bProcessing": true,
"sAjaxSource": "/examples/examples_support/json_source.txt"
} );
The HTML:
Rendering engine
Browser
Platform(s)
Engine version
CSS grade
Loading data from server
Rendering engine
Browser
Platform(s)
Engine version
CSS grade
Part of the source.txt:
{ "aaData": [
["Trident","Internet Explorer 4.0","Win 95+","4","X"],
["Trident","Internet Explorer 5.0","Win 95+","5","C"],
["Trident","Internet Explorer 5.5","Win 95+","5.5","A"],
["Trident","Internet Explorer 6","Win 98+","6","A"],
The original jason_source.txt wouldn't validate on jsonlint.com so I replaced all the single quotes with double quotes. Anyhow, I have no idea what I'm doing wrong. The url for the source is fine. When I copy/paste, I can see the text just fine.
Any thoughts?
This discussion has been closed.
Replies
apparently the sAjaxSource also needs to be https://
I was using http... so after I changed it to https, it started working :)