HCG Web Services Documentation
6 July 2009 • Version 1.0

search.js javascript

This contains the setFocus() function for use with the Search remote tag. It also has a couple of other functions that can be used with a simple start search form.

To use this file on your site, you can link to it directly from our server:

<script type="text/javascript" src="http://resources.hcgweb.net/rtags/js/search.js"></script>

If you want to make changes to this file, you can also copy it to your local site and link to the local copy directly.

NOTE: If you roll your cursor over the PHP code below, you should see a small menu pop up in the upper right corner with an option to view the source code. Click on that, then copy and paste the code into a text editor and save the file to your hard disk to get the code without the line numbers on the left.

The code