Skip to content

Instantly share code, notes, and snippets.

@phiggins42
Created March 9, 2011 11:26
Show Gist options
  • Save phiggins42/862050 to your computer and use it in GitHub Desktop.
Save phiggins42/862050 to your computer and use it in GitHub Desktop.
dojo.require("dojo.io.script")
dojo.io.script.get({
url: 'http://search.yahooapis.com/WebSearchService/V1/webSearch',
content: {
appid: 'azvpxZ_V34H8C732JoAieOR1opWXQNw0MyaG2RuMPIplVFkMnKNi8SPZ0mlgf4E-',
query: "foo",
output: 'json'
},
timeout: 60000,
callbackParamName: 'callback',
//
load: function(searchResult) {
console.dir(searchResult);
},
//
error: function(text) {
alert('An error has occured.');
return text;
}
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment