Search found 3 matches

by arlevi
Wed Jan 07, 2015 3:05 pm
Forum: API
Topic: Support for JSONP
Replies: 4
Views: 5117

Re: Support for JSONP

The only thing needs to be done is to wrap the JSON output with the requested parameter in URL's query ( as text, nothing else ) Lets say that for a certain query, this is the JSON output from *FanArt*'s site: { "artist": "bla", "background": "http://..." } And I wrote on my site's JS file ( js/some...
by arlevi
Tue Jan 06, 2015 10:16 am
Forum: API
Topic: Support for JSONP
Replies: 4
Views: 5117

Re: Support for JSONP

Thanks for the answer, I'm already using the API ( though the docs looks much better than I remembered it ) I'll wait for Kode :) Just wanted to add to my initial post: JSONP is actually a concept that isn't really related to just AngularJS ( code example above ). The thing is that at the end of the...
by arlevi
Fri Dec 26, 2014 1:24 pm
Forum: API
Topic: Support for JSONP
Replies: 4
Views: 5117

Support for JSONP

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: $scope.init = function() { $http.jsonp(fanart_url).success(function(data, status) { console.debug(status); data.forEach(function(...