getjson alternative method for variable
- by Florian Stanek
I made a script which gets the data from a json file and parse it. It worked on a webserver.
But now I have to find a solution to get it work on a local file (file:///C:/xampp/htdocs/script/index.html) instead on a server. It only works in FF:
$.getJSON('data2.json', function(data) {
$.each(data.selection_form.entities, function(i,name){
...do something
});
});
Any ideas? A local webserver is not a solution.