
inputs
The <INPUT> tag is used in forms and allows
interaction with the httpd server.
There are several types of input tags:
- INPUT - buttons and text-boxes.
- textarea - multi line input fields
- isindex - predefined form useful for searching.
- select - list and menu selection.
<input NAME=name [value=string]
[Type =type] [SIZE=x,y] [checked] ALIGN=align>
Creates an input field in a form.
NAME must be present for all types of input except submit
and reset
TYPE can be one of
- >image
This is not supported by Mswindows Mosaic.
- checkbox
can be toggled on and off.
- submit
calls the action specified in the form.
- password
like a text input, but all input is represented by asterixs not Obelisks
- radio
radio buttons. Input fields with the same NAME field. Only one radio
button of the same NAME can be checked at any time.
- reset
clears all the fields in the form.
- text
*default* an input field
Plain input field
<form>
<input NAME="From">
</form>
text areas
On Xmosaic, the SIZE parameter is interpreted as a textarea.
This is ignored in Mosaic for Windoze and proper
TEXTAREAS should be used.
- This wont work under Windoze
-
ROWS=5 COLS=30 ALIGN=middle
- This will work under windoze
-
<TEXTAREA ROWS=5 COLS=30 ALIGN=middle>
submission buttons
Type="submit"
reset button
Type="reset"
check boxes
Type=checkbox
radio buttons
Type=radio
password box
Type=password
<select [MULTIPLE]>...</select>
This creates a pull-down menu containing Options
in a form.
single select
<form>
<select NAME="direction">
<OPTION SELECTED> North
<OPTION> East
<OPTION> South
<OPTION> West
</select>
</form>
multiple single (use ctrl-click to select)
<form>
<select NAME="direction" MULTIPLE >
<OPTION SELECTED> North
<OPTION> East
<OPTION> South
<OPTION> West
</select>
</form>
produces:
<isindex>
This is probably the strangest tag. When I first saw it, I though that it provided
a free text searching capability on a set of documents.
What it actually does is to provide a ready built form (standardisation and
all that), all you have to do is provide the processing at the server end.
Note: on Xmosaic the isindex form is in-lined, on MSwindows the form appears
at the bottom of the screen... weird!!
<textarea [rows=rows] [cols=cols]>
This allows us to put
a panel of text in a form
in Xmosaic, the text is shown within the text area.