|
ION Script User's Guide: ION Script Tag Reference |
|
The INPUT tag is an HTML tag used to define a form element, such as a pushbutton or a text input field. In ION_SCRIPT, the INPUT tag is used inside the ION_FORM tag to define form elements for the ION form. All INPUT types can be used in ION Script applications. For a few types, however, ION Script has custom tags with more functionality than their corresponding INPUT type:
| Note Not all attributes of the INPUT tag are documented here. Only the most commonly-used attributes are listed. Refer to an HTML reference, such as the one at http://www.htmlhelp.com, for a complete list of all INPUT tag attributes. |
<INPUT NAME="name"
TYPE= {"BUTTON" |
"CHECKBOX" [CHECKED] |
"FILE" |
"HIDDEN" |
"IMAGE" [ALT="text"] [SRC="url"] [ALIGN={top | middle | bottom | left | right}]|
"PASSWORD" [MAXLENGTH="characters"] [SIZE="characters"] |
"RADIO" [CHECKED] |
"RESET" |
"SUBMIT" |
"TEXT" [MAXLENGTH="characters"] [SIZE="characters"] }
[ONBLUR=script] [ONCHANGE=script] [ONFOCUS=script] [TABINDEX="position"] [VALUE="value"] >
| Note To use ION Script variables in an INPUT attribute, you must insert the variable using ION_VARIABLE. See Variable Substitution in Attribute Values. |
For IMAGE fields, ALIGN specifies either the position of the image in relation to the left and right borders of the browser, or the alignment of text in relation to the image:
For IMAGE fields, ALT specifies the text to be displayed in browsers that do not support images, or in browsers that have been set to not display in-line images.
Specifies whether a checkbox or radio button is checked or unchecked. This attribute is not set to a value—it is either included or not included. If included, the button state is checked.
The maximum number of characters that can be entered in a TEXT or PASSWORD form field.
The name of the form field. This name is used to refer to the value of the form field using the format $Form.NAME. The NAME you specify for form fields cannot begin with ION_ _.
The script to execute when the form field loses focus. Focus is lost when the user clicks the mouse outside of the form field, or presses the Tab key.
The script to execute when the value in the form field changes. This event occurs when the form field loses focus, but only if the value has changed since the last time the field had focus.
The script to execute when the form field receives focus. Focus is obtained when the user clicks in or tabs into the form field.
The length of a TEXT or PASSWORD field, in characters.
The URL of the image to use for IMAGE form fields.
The type of form field. Valid values include BUTTON, CHECKBOX, FILE, HIDDEN, IMAGE, PASSWORD, RADIO, RESET, SUBMIT, and TEXT.
The position of the form field in the Tabbing order. The Tabbing order is the order in which fields receive focus when the Tab key is pressed.
The value assigned to the form field, which can be accessed using $Form.NAME. If this value is numeric, and you want to use it in an expression, you must declare a new INT or DOUBLE variable, assign it the value $Form.NAME, and use the new variable in the expression instead of $Form.NAME. See Using $Form Variables in Numeric Expressions.
This attribute applies to the different form elements as follows:
IDL Online Help (March 06, 2007)