ProSoft Technology 5201-104S-103M User Manual

Page 23

Advertising
background image

Web Page Construction

Web Server

ProSoft Technology, Inc.

Page 23 of 35

September 28, 2005

Example: <INPUT TYPE=”TEXT” NAME=”s1000” >

This example will place the value entered into the control into the word address
1000 in the module. The data will be treated as a 16-bit value.

NOTE: The value field can be set to the dynamic value in the database using the
Å

DATA Æ data insertion tag to show the current value in the database when the

form is first displayed.

PASSWORD

- This control enters the password for the PUT or POST method if

the module is configured for password protection. The name attribute associated
with this type should be 'p' or 'P'. It can also be used with any other database
type that the data entry is not to be seen when entered on the form.

Example: <INPUT TYPE=”PASSWORD” NAME=”p”>.

HIDDEN

- This control can be used to automatically submit the password for the

module without the user having to enter the password on the form. Use of this
feature may be a security issue.

RADIO BUTTON

- This control can be used to set the state of a binary point (i.e.,

B1=0) or set the state for a byte (i.e., C15=2) or integer value (i.e., S1000=5). To
control a binary point, two radio button controls can be placed on the form: One
to turn the point on, and the other to turn the point off. Several buttons can be
used to set a specific set of values to an integer register. The value field for the
selected button will be written to the module. For example, buttons could be built
to send the values 0, 1000, 2000, 3000 and 4000 to the module. The value
associated with the button selected will be passed to the module. The module will
place the value received into its internal database. In order to group a set of radio
button controls, define each control using the same name.

Example: <input type="radio" name="S1" value="0">

SUBMIT BUTTON

- This control is normally used to submit the request but can

also be used to send a specific command or set the value for a binary point, byte
or integer database point. A submit button must be placed on the form for the
data on the form to be submitted to the module. You can use the submit button to
also send values to the database by assigning name and value fields for the
control.

RESET BUTTON

- This control reloads the form. The user may request this

operation if they enter invalid data and do not wish it to be transferred to the
module.

IMAGE

- This control works like submit button control. Refer to the submit button

discussion.

CHECK BOX

- This control should not be used because it is only sent if the box

is checked. A set of check boxes could be used to simulate the RADIO BUTTON
type. This would simulate the RADIO BUTTON with the potential for not
submitting one of the options.

Advertising