asked on
(function($) {
var url = 'http://www.gp.se/kulturnoje/film/?m=json';
$.ajax({
type: 'GET',
url: url,
async: false,
jsonpCallback: 'mktmp.appendSpots',
contentType: "application/json",
dataType: 'jsonp',
success: function(json) {
console.dir(json);
}
});
})(jQuery);
$.getJSON("http://www.gp.se/kulturnoje/film/1.939463-dark-shadows?m=json&callback=mktmp.appendSpots",
function(data) {
alert(data);
})
.success(function() { console.log("Oh my - success"); })
.error(function(jqXHR, textStatus, errorThrown) {
console.log("error " + textStatus);
console.log("errorThrown " + errorThrown);
})
.complete(function() { console.log("complete"); });</script>
which gives me this in the console: error parsererror jsonb.html:18
errorThrown SyntaxError: Unexpected token m jsonb.html:19
complete
ASKER
ASKER
ASKER
JavaScript is a dynamic, object-based language commonly used for client-side scripting in web browsers. Recently, server side JavaScript frameworks have also emerged. JavaScript runs on nearly every operating system and in almost every mainstream web browser.
TRUSTED BY