YoungDuPage Posted July 1, 2008 Share Posted July 1, 2008 I have a custom google search box as a sidebar "extra" on my homepage. Is it possible to have the search results shown on a different page?This is the search box code. <style type="text/css">@import url(http://www.google.com/cse/api/branding.css);</style><div class="cse-branding-bottom" style="background-color:#FFFFFF;color:#000000"> <div class="cse-branding-form"> <form action="http://www.kazafox.com/search.php" id="cse-search-box"> <div> <input type="hidden" name="cx" value="partner-pub-9188516594009502:v3c369-ee72" /> <input type="hidden" name="cof" value="FORID:10" /> <input type="hidden" name="ie" value="ISO-8859-1" /> <input type="text" name="q" size="5" /> <input type="submit" name="sa" value="Search" /> </div> </form> </div> <div class="cse-branding-logo"> <img src="http://www.google.com/images/poweredby_transparent/poweredby_FFFFFF.gif" alt="Google" /> </div> <div class="cse-branding-text"> Custom Search </div></div> This is the code for the search results. <div id="cse-search-results"></div><script type="text/javascript"> var googleSearchIframeName = "cse-search-results"; var googleSearchFormName = "cse-search-box"; var googleSearchFrameWidth = 800; var googleSearchDomain = "www.google.com"; var googleSearchPath = "/cse";</script><script type="text/javascript" src="http://www.google.com/afsonline/show_afs_search.js"></script> Link to comment Share on other sites More sharing options...
jeffman Posted July 1, 2008 Share Posted July 1, 2008 You can open a new page/tab with a specified url. The url could include a big-old query string that gets data from your form. The query goes straight to google, or gets processed by your script and then goes to google. Either way, it returns to your new page.Yes? Link to comment Share on other sites More sharing options...
YoungDuPage Posted July 1, 2008 Author Share Posted July 1, 2008 great! so where exactly do i learn more about that or where should i start? Link to comment Share on other sites More sharing options...
justsomeguy Posted July 1, 2008 Share Posted July 1, 2008 Put a target on the form tag.<form target="_blank" ...What do you mean by code for the results? Don't you just submit the form and then go to Google's site and see the results? Link to comment Share on other sites More sharing options...
YoungDuPage Posted July 1, 2008 Author Share Posted July 1, 2008 Yea. thats what i meant my fault. thanks it works now Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.