|
|
Section Intro: Html Helpers
Html HelpersSynopsis:The following functions all produce HTML as output and are defined in order to help with the creation of forms and tables. Commands:
For every instance of a form in SESSION-PACK, append the elements in order to arrays in DEST-PACK. Thus, if your form contained "name" and "age" input fields, and the user created multiple instances of this form, the output of calling <forms::multiple-instance-resolve mypack results> would be: You have to call <forms::multiple-instance-resolve> for every form in your page which used <forms::multiple-instances>. Since this requires the use of the session database, you can call <forms::multiple-instance-resolve> from any page at any time to read the contents of the session data, and return the information.
Creates a repeating form, allowing multiple entries of data sets. The body of this macro is exactly whatever you might put in a standard FORM body. What is needed here is examples, and there really isn't space for any. Please see the file called multiple-instances.mhtml in the distribution for examples.
Display the standard buttons for input when performing
If you would like to control the placement of these buttons, then you should set the variable FORMS::NO-SUBMITS. In this case, you are responsible for calling forms::standard-buttons yourself.
The Web based pathname to the directory containing the document which is currently being included with <include>.
Returns the two-letter abbreviation of the ISO-3166 country name passsed in COUNTRY-NAME. If COUNTRY NAME isn't an ISO-3166 country name, then it is simply returned as is.
Returns the three-letter abbreviation of the ISO-3166 country name passsed in COUNTRY-NAME. If there isn't a three-letter abbreviation, but there is a two-letter one, then that is returned. If COUNTRY NAME isn't an ISO-3166 country name, then it is simply returned as is.
Produce a selection widget suitable for placing in a form which allows the user to select a country from a pull-down menu. POSTNAME is the name of the variable which should be posted when the form is submitted. SITENAME is the name of another variable which can contain the currently selected country.
This differs from
Produce a selection widget suitable for placing in a form which allows the user to select a country from a pull-down menu. POSTNAME is the name of the variable which should be posted when the form is submitted. SITENAME is the name of another variable which can contain the currently selected country -- this variable must be fully qualified with its package name (i.e., DEFAULT::FOO, or SITE::COUNTRY).
Produce a selection widget suitable for placing in a form which allows the user to select a country from a pull-down menu. POSTNAME is the name of the variable which should be posted when the form is submitted. SITENAME is the name of another variable which can contain the currently selected country -- this variable must be fully qualified with its package name (i.e., DEFAULT::FOO, or SITE::COUNTRY).
Produce a selection widget suitable for placing in a form which allows the user to select a country from a pull-down menu which includes all of the ISO-3166 country names. POSTNAME is the name of the variable which should be posted when the form is submitted. SITENAME is the name of another variable which can contain the currently selected country -- this variable must be fully qualified with its package name (i.e., DEFAULT::FOO, or SITE::COUNTRY).
Produce a selection widget suitable for placing in a form which allows the user to select an ISO-3166 country name from a pull-down menu. POSTNAME is the name of the variable which should be posted when the form is submitted. The long name of the country is displayed, but the short, two-letter version of the country is returned. SITENAME is the name of another variable which can contain the currently selected country.
Produce a selection widget suitable for placing in a form which allows the user to select an ISO-3166 country name from a pull-down menu. POSTNAME is the name of the variable which should be posted when the form is submitted. The long name of the country is displayed, but the short, three-letter version of the country is returned. SITENAME is the name of another variable which can contain the currently selected country.
Produce a selection widget suitable for placing in a form which allows the user to select a province name from a pull-down menu. POSTNAME is the name of the variable which should be posted when the form is submitted. The long name of the province is displayed, but the short, two- or three-letter version of the province is returned. SITENAME is the name of another variable which can contain the currently selected province.
Produce a selection widget suitable for placing in a form which allows the user to select a US state name from a pull-down menu. POSTNAME is the name of the variable which should be posted when the form is submitted. The long name of the state is displayed, but the short, two-letter version of the state is returned. SITENAME is the name of another variable which can contain the currently selected state.
Produce a selection widget suitable for placing in a form which allows the user to select a US state or province name from a pull-down menu. POSTNAME is the name of the variable which should be posted when the form is submitted. The long name of the state or province is displayed, but the short, two- or three-letter version of the state or province is returned. SITENAME is the name of another variable which can contain the currently selected state or province.
Create an HTML menu with title, text and links. Calling sequence: <menu "This Is The Title"> This is link text: target.mhtml External Site: http://www.external.com/welcome.mhtml </menu>
Add BODY to the contents of the session variable "message".
Also see
Produces the canonical form of the words "Meta-HTML".
Use instead of the Creates an option item in the page in which VARNAME is expected to contain the current value of the choice, or nothing, if no choice has been made. If you supply the optional VALUE argument, that value is returned instead of DISPLAY. If VARNAME contains VALUE, then this option has the HTML SELECTED attribute turned on. Example: <select name=airport> <select-option airport Atlanta> <select-option airport Boston> <select-option airport Chicago> <select-option airport "Los Angeles"> <select-option airport "New York"> <select-option airport Miami> <select-option airport "San Francisco"> </select>
Display the contents of the session variable "message",
and then remove that variable from the session.
Also see
Modify the characters in BODY raising lower-case characters to upper-case, and changing the size of fonts as directed. For example, this is how the text of "Hello There" can be displayed with lowercase characters as smaller uppercase versions of themselves.
<small-caps lower=-1>Hello There</small-caps>produces: HELLO THERE
You write `Click here for source.'
Display the contents of WEB-PATH in
The fully qualified pathname to the directory containing the currently executing document.
The complete URL to this document, without the query string or path information.
The fully qualified pathname to the document which is currently executing.
The local web-based URL to this document, without the query string or path information.
Shows TEXT as a linkable URL. Example: For more information on <Meta-HTML>, see <url http://www.metahtml.org>, or send mail to <url info@metahtml.org>.produces: For more information on Meta-HTML, see http://www.metahtml.org, or send mail to info@metahtml.org.
Insert BODY verbatim, avoiding doing any processing on the contents. If the keyword argument QUOTE is given, occurrences of characters with special meaning to HTML are replaced with the HTML code to produce that character in the output page.
Contrast this with
Lay out a table according to number of columns, but listing each item vertically. The number of items to each column is determined by dividing the total number of items by the number of desired columns.
Edit Section
![]() The META-HTML Reference Manual V2.0 Copyright © 1995, 1998, Brian J. Fox Found a bug? Send mail to bug-manual@metahtml.org |