Some applets need no configuration information and thus do not require applet PARAM specification. Others, for instance the Chart Applet, do require initial configuration information and thus require that a number of PARAMs be specified in the APPLET tag. The configuration information is applet and task specific and thus depends on which applet you are incorporating and your intended purpose. A PARAM (parameter) is specified by including a <PARAM> tag in the body of the APPLET tag. For examples of how these parameters are used see the sample applications. For a complete list of the available parameters see the PARAM tags Index.
[CODE = appletFile] |
This required attribute gives the name of the file that contains the applet's compiled Applet subclass. This file is relative to the base URL of the applet. It cannot be absolute. Example: CODE="lotus.chart.ChartApplet.class" |
[CODEBASE = URL] |
This optional attribute specifies the base URL of the applet -- the directory that contains the applet's code. If this attribute is not specified, then the document's URL is used. Example: CODEBASE="http://myserver/konawebpack/" |
[NAME = appletInstanceName] |
This optional attribute specifies a name for the applet instance, which makes it possible for applets on the same page to find (and communicate with) each other. Example: NAME="TemperatureChart" |
[ARCHIVE = compressed file] |
This optional attribute specifies the location (relative to the CODEBASE of the main class file) of a compressed file (consisting of all the necessary class files and support images/sounds etc.) that may be downloaded to the users Hard Disk, to save download time should they return to the page at a later date. Any files not contained in this archive that are needed will be searched for by the browser in the normal way. NOTE : The ARCHIVE attribute is Netscape specific. Example: ARCHIVE="sheet.zip" |
[<PARAM NAME=appletAttribute1 VALUE=value>] |
This element is the only way to specify an applet-specific attribute. Applets access their attributes with the getParameter() method. Example: <PARAM NAME="DataNameFrom" VALUE="ChartDataName"> [<PARAM NAME="cabbase" VALUE="{.CAB file}">] For Java applets, you use the CABBASE parameter in an APPLET tag to point to the .cab file. If the applet is not already present on the user's system, the .cab file is downloaded, the contents extracted, and the applet started. NOTE: The CABBASE parameter is Internet Explorer-specific. Example: <PARAM NAME="cabbase" VALUE="chart.cab"> |