|
Building a better mouse trap |
|
|
|
|
Written by Datagod
|
|
Sunday, 14 October 2007 |
I tweaked the code behind the SQL Hunter today to force the cursor to appear in the "traditional search results" box. This way, when you open the SQL Hunter, you can immediately start typing your search request. No need to grab the mouse and click on the box.
I also modified the embedded SQL Hunter search box at the top right hand of each page on Cooking With SQL.
Here is summary of the changes to the code:
Step 1 - Assign a name to the CSE form in your code:
<form method="get" name=”SQLHUNTER” action="http://www.google.com/custom" target="google_window">
Step 2 - Add an "onLoad" event to the BODY tag on the page where your CSE resides:
<body onLoad="self.focus();document.SQLHUNTER.q.focus()"> I am very pleased with the results!
|
|
Last Updated ( Sunday, 14 October 2007 )
|