Support for JSONP
Posted: Fri Dec 26, 2014 1:24 pm
Hi guys,
I'm trying to use FanArt API with AngularJS.
After the site has loaded, I want to create a background of a music artist that I daily choose.
I was trying to use:
But it gives me a JS error. such as described here: http://stackoverflow.com/questions/2172 ... -statement
So my question is - does FanArt support JSONP in any way ?
I'm trying to use FanArt API with AngularJS.
After the site has loaded, I want to create a background of a music artist that I daily choose.
I was trying to use:
Code: Select all
$scope.init = function() {
$http.jsonp(fanart_url).success(function(data, status) {
console.debug(status);
data.forEach(function(entry) {
console.log(entry);
});
}).error(function(error) {
console.log("error:", error);
});
};
So my question is - does FanArt support JSONP in any way ?