Hot answers tagged ajax
Welcome to the wonderful world of cross domain scripting! We do support JSONP, to alleviate this. Just drop jsonp=myMostFavoriteMethod onto any request, and it'll be returned in a wrapper function invocation. See also.
Yes, this is a XSS thing. You can use JSONP (all API methods take a jsonp parameter for the callback name) to work around this. Alternatively, you can use one of the Soapi.JS libraries, which handle this for you.
Only top voted, non community-wiki answers of a minimum length are eligible