Cross-domain XHR problem?

On Dec 20, 2010, at 11:50 AM, Adrian Statescu 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?

Reply via email to