Source of google-search

/* appjet:version 0.1 */ var query = unescape(request.params.query); page.setTitle("Google AJAX Search by JGate on AppJet"); page.head.write(""" <!--   copyright (c) 2009 google inc.   You are free to copy and use this sample.   License can be found here: http://code.google.com/apis/ajaxsearch/faq/#license -->     <script type="text/javascript" src="http://www.google.com/jsapi?key=ABQIAAAAP14rN_8o_u6rCI80hIiUnBS6xUbjo2vW5BlIZCGnHlxdro8EjRS5H5xHL68l6ou0EhI3lXycpi4qzA"></script>     <script type="text/javascript">     /*     *  How to draw results in tabbed mode.     */     google.load('search''1');     function OnLoad() {       // create a tabbed mode search control       var tabbed = new google.search.SearchControl();       tabbed.setResultSetSize(google.search.Search.LARGE_RESULTSET);       // add CSE """); if (query != "undefined") page.head.write("""       var cseSearch = new google.search.WebSearch();       cseSearch.setSiteRestriction("017828990672063541608:ft-zlv9wkk4");       cseSearch.setUserDefinedLabel("JGate");       tabbed.addSearcher(cseSearch); """); page.head.write("""       // create our searchers.  There will now be 7 tabs.       tabbed.addSearcher(new google.search.WebSearch());       tabbed.addSearcher(new google.search.BlogSearch());       tabbed.addSearcher(new google.search.NewsSearch());       tabbed.addSearcher(new google.search.ImageSearch());       tabbed.addSearcher(new google.search.VideoSearch());       tabbed.addSearcher(new google.search.BookSearch());       tabbed.addSearcher(new google.search.PatentSearch());       // draw in tabbed layout mode       var drawOptions = new google.search.DrawOptions();       drawOptions.setDrawMode(google.search.SearchControl.DRAW_MODE_TABBED);       var options = new google.search.SearcherOptions();       options.setExpandMode(GSearchControl.EXPAND_MODE_OPEN);       // Draw the tabbed view in the content div       tabbed.draw(document.getElementById("content"), drawOptions); """); if (query != "undefined") page.head.write("""      tabbed.execute('"""+ query +"""'); """); page.head.write("""     }     google.setOnLoadCallback(OnLoad);     </script>     <style>         .gsc-control { width : 640px; font-size: 13px; margin-top: 20px; }         .search-control { margin: 20px; }         div.header { position: absolute; right: 20px; font-size: 12px; top: 5px;}     </style> """); print(link("http://apps.jgate.de", IMG({src: "http://static.jgate.de/jgate-logo.gif", style: "border: none"}))); print(DIV({className: "header"}, link("http://www.google.com""Google"), " powered AJAX search by ", link("http://apps.jgate.de""JGate on AppJet"))); print(html('<div id="content">Loading...</div>'));

Go Back to this app | Get plain source

Powered by AppJet on JGate
source
rendered in 0.247s