If you are using a multi-db search database and want to incorporate a quick-search on your pages, try this.
Code
HTML Piece:
Highlight the following and pass-thru HTML
<FORM NAME="qSearch" onSubmit="return false;"><INPUT
TYPE="text" NAME="Query" ALIGN="center" SIZE=12
VALUE=""></form>
NOTE: If you are embedding this QuickSearch form into another form, you will need to add a </Form> before the opening <Form Name= . . .> tag above.
Javascript Piece:
Add this to the JSHeader
function qSearch() {
f = document.forms(0)
startURL = "/YourSearchDBName.nsf/$$search?searchsite&query="
qString = f.Query.value
if ( qString == "" ) {
alert ("ERROR! No Query String Found
Please enter a Query String and
try again.");
f.Query.focus();
return false;
}
parent.location.replace( startURL + qString);
f.Query.value="";
return false;
}
Now call the qSearch() function from a button, an imported graphic or a text action link.
NOTE: If you are placing your quick search in one frame and want to target another frame for the results, use the following syntax
parent.YourFrameName.location.replace( startURL + qString)