Ok, thanks for informations , finally , in first instance,I've decided and used Request.JSON with a file PHP to fetch data and in second instance for another release I've used Request.JSONP to get the json. the result is here: https://github.com/thinkphp/wikiworld and the source is here: https://github.com/thinkphp/wikiworld
On Dec 20, 8: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?
