<HTML>
<SCRIPT LANGUAGE="JavaScript">
function PerformSearch( qform ) {
// start search...
var res = document.questagent.startSearch( qform.query.value );
var hits = new Array;
parent.customwin.document.open();
// check result
if( res < 0 ) {
parent.customwin.document.write( "<h3>Error.</h3>" );
parent.customwin.document.write( document.questagent.getMessage() );
}
else if( res == 0 ) {
parent.customwin.document.write( "<h3>Nothing found.</h3>" );
}
else {
parent.customwin.document.write( "<h3>Search result:</h3>" );
parent.customwin.document.write( "<ul>" );
// print results
for( i = 0; i < res; i++ ) {
parent.customwin.document.write(
"<a href=\"",
document.questagent.getHitLocation( i ),
"\">",
document.questagent.getHitTitle( i ),
"</a><br>" );
}
parent.customwin.document.write( "</ul>" );
}
// print footer
parent.customwin.document.write( "<font size=1>" );
parent.customwin.document.write( "Search technology by JObjects" );
parent.customwin.document.write( "</font>" );
parent.customwin.document.close();
}
</SCRIPT>
<BODY>
<table border="0" width="90%">
<tr>
<td>
<a href="../doc/jsapi.html" target="customwin">JavaScript connection API</a> |
<a href="../doc/srcscrpt.html" target="customwin">This frame source</a> |
<a href="../doc/srcfrset.html" target="customwin">Frameset source</a>
</td>
<td>
<div align="RIGHT">
<FORM name="simpleform">
<INPUT TYPE="TEXT" NAME="query" SIZE="15">
<INPUT TYPE="BUTTON"
onClick="PerformSearch( this.form )" VALUE="Find">
</FORM>
</div>
</td>
</tr>
</table>
<APPLET
CODE = "com.jobjects.quest.SearchApplet.class"
ARCHIVE = "qagent30.zip"
NAME = "questagent"
ID = "questagent"
WIDTH = 0
HEIGHT = 0
MAYSCRIPT
>
<PARAM NAME="CABBASE" VALUE="qagent30.cab">
<PARAM NAME="indexfile" VALUE="data/index.quest">
</APPLET>
</BODY>
</HTML>