Technical data
138
W&T
<Param Name="showerrors" VALUE="on">
resp. „off“ on and off. The standard value is „off“.
Once all parameters have been entered, the HTML tag must be
closed using </Applet> geschlossen werden.
Example:
<Applet Archive="A.jar" CODE="A.class"
Codebase="http://192.168.0.10" Width="300" Height="100">
<Param Name="unit" VALUE="Liter">
<Param Name="device" VALUE="0">
<Param Name="BGColor" Value="#0000FF">
<Param Name="FGColor" Value="#FF0000">
<Param Name="Align" Value="Center">
<Param Name="Sensor" Value="1">
</Applet>
The font size is automatically calculated from the size of the
applet.
5.1 Controlling the Java-Applet with Java Script
To use Java Script to control the Java applet, the addition
„mayscript“ must be specified when opening the applet
<Applet Archive="A.jar" CODE="A.class"
Codebase="http://192.168.0.10" Width="300" Height="100"
mayscript>
To be able to work with the applet, the corresponding JavaScript
function must be declared in the Web page header.
The following read functions are used for this:
function sensorChanged( iDevice, iSensor, iVal )
{ Program code which is running at change of an Input }
The preceding function is invoked by the applet when a analog
value change is detected at the sensors. iDevice specifies for