I’m trying to load a .json file with this line:
$.getJSON('engines.json',{},function(data){
alert(data);
});
If I look in firebug, it says the file is loaded. But the success function never runs. It happens with $.get as well.
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
You need to ensure that the
JSONfile you are requesting for, it is actually well formatted and valid.You can validate your
JSONfile/response using this online validator: http://jsonlint.com/