I have a valid JSON file on domain example1.com. It's just a PHP file with a header ('Content-type: application/json; charset=utf-8'). The JSON on this page is valid.
I'm trying to parse the JSON on another domain. This is the script:
$(function() {
$.getJSON('www.example1.com?callback=?', function(data) {
alert("lol")
});
});
Why is the alert not working? It seems like the callback is never launched.