Skip to content

Instantly share code, notes, and snippets.

@PureSpider
Last active December 19, 2015 01:29
Show Gist options
  • Save PureSpider/5876428 to your computer and use it in GitHub Desktop.
Save PureSpider/5876428 to your computer and use it in GitHub Desktop.
function loadURL(url) {
$.get("http://query.yahooapis.com/v1/public/yql?q=select%20*%20from%20html%20where%20url%3D%27" +
encodeURIComponent(url) +
"%27%0A&format=xml&diagnostics=false",
function(data){
var xml = $( data );
var body = xml.find("query results body");
// ...
}
);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment