JSONP Working Example
JSONP Working Example
by meetravi
JavaScript
(function($) {
var url = "https://www.googleapis.com/books/v1/volumes/zyTCAlFPjgYC?callback=?";
$.ajax({
type: 'GET',
url: url,
dataType: 'json',
success: function(json) {
console.dir(json);
$(".test").html(json.volumeInfo.title);
},
// Error never called!!!!
error: function(e) {
console.log(e.message);
}
});
})(jQuery);