sAjaxSource yields "No matching records found".

sAjaxSource yields "No matching records found".

supermangosupermango Posts: 7Questions: 0Answers: 0
edited January 2010 in General
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?

Replies

  • supermangosupermango Posts: 7Questions: 0Answers: 0
    oh snap! I found the problem. I am calling my script through https://

    apparently the sAjaxSource also needs to be https://

    I was using http... so after I changed it to https, it started working :)
This discussion has been closed.