I'm using $.getJSON to load a JSON file. The file appears to load successfully (I can see its contents in Firebug below a heading that reads "GET http://siteinfo/data/library.json 304 not modified"). However if I try to use console.log or alert inside the success function it doesn't work):
$.getJSON('data/library.json', function(data){
alert('HERE');
console.log(data);
$.each(data.library, function(k,v){
console.log(k + "/" + v);
});
});
None of the alerts or console.logs are working. What could I be doing wrong?