Adding the Search Applet to Your HTML Page
QuestManager automatically creates an initial HTML page, including the applet definition and associated parameters, when you deploy the applet. You may wish to refer to this discussion for a more full understanding of the applet parameters. See "Customizing the Search Applet," for details on further customizing the applet’s appearance.
To include an applet in your HTML page, you insert an <APPLET> tag. For example, in a JavaScript implementation, the applet might be specified as follows:
<APPLET CODE = "com.jobjects.quest.SearchApplet.class" ARCHIVE = "qagent.zip" NAME = "questagent" ID = "questagent" WIDTH = 300 HEIGHT = 260 MAYSCRIPT > <PARAM NAME="CABBASE" VALUE="qagent.cab"> <param name="ParamFile" value="qagent.prm"> </APPLET>
The following table lists parameter items that can be specified within the opening
<APPLET...> tag.
|
Tag Item |
Description |
|
<APPLET |
Beginning of the APPLET tag. Required. Note that even though CODE, ARCHIVE, NAME, ID, WIDTH, HEIGHT and MAYSCRIPT parameters appear on separate lines in the example, they are all enclosed within the opening tag. This tag closes at the ">" character below. |
|
CODE |
Name of the search applet, SearchApplet.class or FieldedSearchApplet.class. Name of the search applet is required and is case sensitive. |
|
ARCHIVE |
The archive file, if any, containing the CODE. If you are storing the index on a CD-ROM using ISO9660, an archive file is generated by QuestManager. |
|
NAME |
The name to refer to the applet. Required for JavaScript implementations. |
|
ID |
The ID to refer to the applet. Required for JavaScript implementations. |
|
WIDTH |
The width of the applet. If set WIDTH and HEIGHT are set to 0, the applet is not visible but can still be accessed through JavaScript. |
|
HEIGHT |
The height of the applet. If set WIDTH and HEIGHT are set to 0, the applet is not visible but can still be accessed through JavaScript. |
|
MAYSCRIPT |
Tells the applet that JavaScript may interact with it. Required for JavaScript implementations. |
|
> |
Closing symbol for the opening applet tag. Required. |
|
<PARAM NAME="CABBASE" VALUE="qagent.cab"> |
The Internet Explorer cabinet file that contains Java classes. Required for some Internet Explorer browsers. The archive file must be used when using ISO9660 format CD-ROMs. |
|
<param name="ParamFile" value="qagent.prm"> |
Specifies separate file that contains search applet parameters. |
|
</APPLET> |
End of applet definition. Required. |
You can customize the appearance and functions of the QuestAgent search applets by supplying additional parameters. See "Customizing the Search Applet."