Cross domain AJAX requests using JQuery and YQL

Posted by nav on Stack Overflow See other posts from Stack Overflow or by nav
Published on 2010-03-17T16:48:07Z Indexed on 2010/03/20 18:01 UTC
Read the original article Hit count: 635

Filed under:
|
|
|

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

© Stack Overflow or respective owner

Related posts about yql

Related posts about AJAX