Home
Download
User Info
New User FAQ
Tutorials
Demos
Commands
Variables
Troubleshooting
Sysop Info
Sysop FAQ
Theory
Installation
Management
Tests
Troubleshooting
Feedback
Resources
Release Notes
Credits
Disclaimer
|
NeoWebScript -- Neo Forms 1
Neo Forms 1 is the first of a number of expected
forms packages and extensions for NeoWebScript.
This package allows you to define forms that will automatically
fill in the values of the form elements with the contents of an array,
where the names of the fields are fetched from correspondingly
named elements of an array. (and NeoWebScript is very good at getting
arrays to and from disk, see commands.)
When there is no corresponding element, a reasonable default
value is set instead. (Blank, in most cases.)
- neo_form [arrayName] [htmlFormParams]
Begin emitting a form where fields defined using the
Neo Forms 1 commands will have values taken
from arrayName, and additional (including
required) HTML parameters appear in htmlFormParams.
Example:
neo_form data {method=post
action="record_message.nhtml"}
Begins emitting a form where elements will come from the array named
data , the data will be sent as a post, and
the NeoWebScript webpage called up and executed as a result is
called record_message.nhtml .
The default arrayName is response signifying the response from the user.
The default htmlFormParams are "method=post action=$webenv(DOCUMENT_NAME)"
This means that the form will be a post, not a get, and will default to submit to the current document.
- neo_form_field type name [parms]
Define Neo Forms 1 fields of input types
text, hidden, or password.
Example:
neo_form_field text name "width=50"
Define a text field named name that will receive its
initial value from arrayName(name).
- neo_form_radiobuttons name parms values
Define a number of radiobuttons. The shared field name, and
array element name, is name, parms pass through
to the web browser, and values is a list of the
values to put into the radiobuttons.
If arrayName(name) exists and matches one of the passed
values, the corresponding radiobutton will be selected.
- neo_form_select name parms values
Define a bunch of options that are usually displayed as a popup
menu. Again values are a list, and again if arrayName(name)
exists and matches one of the specified values, that value is
selected automatically.
- neo_form_checkbox name [parms]
Creates a checkbox item and array element named name.
Passed-through parameters are in parms.
Expects a boolean value, either 0 (deselected) or 1 (selected).
If the element doesn't exist, defaults to deselected (unchecked).
- neo_form_textarea name [parms]
Creates a <textarea> element named name in the form
you are creating.
Example:
neo_form_textarea body "rows=6 cols=60"
Create a text area element named body that is six rows
high and sixty columns wide.
- neo_form_submit [text] [parameters]
Create a submit button. If text is specified, it overrides
the default, which is whatever one you get if you create
an <input type=submit> .
- neo_form_reset [text]
Same as for neo_form_submit, except clears the
fields and shows the default reset value.
- neo_form_end
Ends the form currently being emitted by issuing a </form> .
|