Running Ajax (JSON) example locally

Running Ajax (JSON) example locally

rhigginsrhiggins Posts: 4Questions: 0Answers: 0
edited October 2009 in General
Works in IE, Google Chrome and Safari, but it refuses to show the data in Firefox. I am sure it is because I am running it as a file locally as the site works fine from datatables.net.

I have looked through all the security options, downloaded local files plugin, all to no avail. Has anybody come across this issue before (the js-array works fine as to the others DOM etc).

Help as I need this to run without a web server.

Thanks in advance

Replies

  • rhigginsrhiggins Posts: 4Questions: 0Answers: 0
    Firefox 3.5.3 is the version
  • allanallan Posts: 63,498Questions: 1Answers: 10,470 Site admin
    Hi rhiggins,

    Are you loading the file as "file://..." in the XHR then? I'm not entirely sure what Firefox's security policy would be on this. Perhaps the easiest way to find out if it should work is construct a very simple 'GET' page. Also, the Firebug console is normally quite good about giving information for security policies which might be hit.

    Regards,
    Allan
  • rhigginsrhiggins Posts: 4Questions: 0Answers: 0
    Thanks Allan,
    It does seem to be security, but as this is only running locally in a static format, I have seperated Firefox and Others, with firefox using js_array and all others (tested and working) using json. I find JSON seems to perform better than js_array on IE..
This discussion has been closed.