My Request.YQL extension: http://www.jsfiddle.net/oskar/95CNd/
On 2010-12-20, at 20:18, Sean McArthur wrote: > For YQL, use Request.JSONP. > > I think there might be a Request.YQL plugin in the Forge, but you should be > able to do everything you want with Request.JSONP. > > > > On Mon, Dec 20, 2010 at 11:06 AM, Arian Stolwijk <[email protected]> wrote: > You cannot do cross-domain requests with Request. Use your server to fetch > the data first, or use Request.JSONP > > > On Mon, Dec 20, 2010 at 7:50 PM, Adrian Statescu <[email protected]> wrote: > Let's assume we have a url in this form: > var url = "http://query.yahooapis.com/v1/public/yql?q=select%20centroid > %2Cwoeid%2Cname%2CboundingBox%20from%20geo.places.children(0)%20where > %20parent_woeid%3D1%20and%20placetype%3D%22country%22%20%7C > %20sort(field%3D%22name%22)&diagnostics=false&format=json"; > > and make the following requst to get the json: > > new Request.JSON({ > url: url, > onSuccess: function(responseJSON, responseText) { > console.log(responseJSON); > } > }).send(); > > this fails...what actually happens? > >
