The main goal of this example is to show how to use StringField.class. For a listing of the attributes associated with the String Field Widget, click on StringField.class.This example uses two string fields, (Dynamic) and (Pre-Built), and a list (Selection). Pre-Built has an href function which reads a byte value set by Selection. Any time a new selection is made in Selection, the lists byte value is altered which Pre-built references in order to know which pre-built string to index to and display. Dynamic on the other hand, has an href function which requests a string variable from the UART. Here is a snapshot of what the html page looks like in a "WYSIWYG" tool:

Figure 1.
To create a stringfield named Dynamic that uses a UART string variable as its input, the following is used:
<APPLET CODE="StringField.class" width="191" height="25" name="Dynamic">
<PARAM NAME="href" VALUE="Amulet:UART.string(2).value()">
<PARAM NAME="fontSize" VALUE="3">
<PARAM NAME="fontstyle" VALUE="plain">
<PARAM NAME="printf" VALUE="%s">
<PARAM NAME="updateRate" VALUE="0.25">
</APPLET>
Dynamic updates every 250msec, getting a UART string variable by using the href function Amulet:UART.string(2).value().
To create a second stringfield named Pre-Built that uses a byte value set by Selection, the following is used:
<APPLET CODE="StringField.class" WIDTH="191" HEIGHT="25" NAME="Pre-Built">
<PARAM NAME="href" VALUE="Amulet:document.Selection.value()">
<PARAM NAME="fontSize" VALUE="3">
<PARAM NAME="fontstyle" VALUE="Plain">
<PARAM NAME="printf" VALUE="%s">
<PARAM NAME="options" VALUE="Kenny,Jimmy,Eddie,Freddie,Tommy,Mikey">
<PARAM NAME="initialCondition" VALUE="Eddie">
<PARAM NAME="updateRate" VALUE="0.25">
</APPLET>
Pre-Built checks the Selection byte value every 250msec by using the href function Amulet:document.Selection.value().
To create a list of pre-built string names named Selection, the following is used:
<APPLET CODE="List.class" WIDTH="46" HEIGHT="60" ALIGN="BOTTOM" NAME="Selection">
<PARAM NAME="href" VALUE="Amulet:NOP()">
<PARAM NAME="fontSize" VALUE="2">
<PARAM NAME="fontStyle" VALUE="plain">
<PARAM NAME="options" VALUE="String 1,String 2,String 3,String 4,String 5,String 6">
<PARAM NAME="initialCondition" VALUE="String 3">
</APPLET>
When a selection is made in Selection, its byte value is altered to reflect the selection made. Pre-Built reads the Selection byte value to know which string to index to and display.
NOTES: