KolaCaine KolaCaine - 1 year ago 64
Ajax Question

Can't display JSON with AJAX

I have a JSON file, with many data inside. And I want to display this with AJAX, so I tried to make this but doesn't work and after much search on internet I call your help :

$(document).ready(function () {

function donnee (data) {


Answer Source

AJAX doesn't work well with the file:// protocol (loading files directly from your file system). Access the page and files from a web server (localhost or otherwise).

Recommended from our users: Dynamic Network Monitoring from WhatsUp Gold from IPSwitch. Free Download