Cross domain AJAX requests using JQuery and YQL
- by nav
Hi ,
I need to use YQL (Yahoo Query Language) to perform a cross domain ajax request then bind the XML response into a JSON object and retrieve a value from the XML.
The link shows how this is done using the YQL service as a proxy for cross domain requests:
http://ajaxian.com/archives/using-yql-as-a-proxy-for-cross-domain-ajax
For example I'm trying to load the request below:
http://query.yahooapis.com/v1/public/yql?q=select%20woeid%20from%20geo.places%20where%20text%20%3D%20%22London%2C%20UK%2C%20UK%22&format=xml
After which I need to grab the WOEID value from the XML content returned.
Is there a way to use similar code to query the XML data returned?
Thanks alot