Created
March 9, 2011 11:26
-
-
Save phiggins42/862050 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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