doStuff function for this:
doStuff : function() {
if ($.searchScript) {
$.head.removeChild($.searchScript);
}
$.searchScript = document.createElement('script');
var url = 'http://search.yahooapis.com/WebSearchService/V1/webSearch';
url += '?language=en&appid=SearchHack&output=json';
url += '&callback=SEARCH.showSearchResults&query='+$.q.value;
this.runScript($.searchScript, url);
},http://search.yahooapis.com is our server name. WebSearchService is our service name. V1 is our version. webSearch is our search method.language, which we're setting to English, our appid, SearchHack, our output format, JSON, and our callback function, SEARCH.showSearchResults, which will be described shortly.query value, set to whatever's in the entry blank.prev - http://kentbrewster.com/build-a-search-app/code/code5.html - next