All the Ispec HTML files contain very simple HTML for painting a screen. HTML FORM elements are used to show the data, since they can be programmatically manipulated, and users can enter data.
The Menu FORM containing a list box or select and a button to transmit data to the system is shown in the following example:
<FORM name="ispecform"><B>Menu:</B> <INPUT type="text" name=top_line size=19> <INPUT type=text name=actmth size=4> <INPUT type="button" value="Transmit" name="help" onClick="parent.parent.copyFormToIspec();true"> <TABLE WIDTH="50%" > <TR> <TD>Test: </TD> <TD><SELECT name=test onChange="parent.parent.copyFormToIspec();true" > ... </SELECT></TD> </TR> ... </TABLE> </FORM>
In this example, the function called when the user clicks Transmit is parent.parent.copyFormToIspec() There are two parent prefixes, because the function is called within the FORM tag. The button's parent in the first instance is the FORM, and the FORM's parent is the main frame, dwtest.html.