Building a better mouse trap PDF Print E-mail
User Rating: / 1
PoorBest 
Written by Datagod   
Sunday, 14 October 2007
ImageI 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!
Hits: 3757
Comments (0)add comment

Write comment
quote
bold
italicize
underline
strike
url
image
quote
quote
smile
wink
laugh
grin
angry
sad
shocked
cool
tongue
kiss
cry
smaller | bigger

busy
Last Updated ( Sunday, 14 October 2007 )
 
< Prev   Next >
Visit the SQL Hunter
Joomla Templates by JoomlaShack Joomla Templates
Free Ecards | Cheap Home Insurance | Cleaning Supplies | Find jobs | Shower Enclosures



In My Sights Photography