User Guide

479
ADOBE GOLIVE CS2
User Guide
To add a go element
1 Drag the Go icon from the WML Elements set in the objects toolbox into the document window. Release the
mouse button when the pointer is over the colored area of a do, onevent, or anchor element.
2 In the Inspector, enter the URL of the card to display in the href text box.
3 Set the following optional attributes in the Go Inspector:
method Specifies a method for submitting data to a server, either get or post. This attribute is only used when
sending information for processing on a server.
accept-charset Lets you enter a list of character encoding (charset) names for data that the origin server accepts
when processing input. Separate the character encoding names with spaces or commas. This attribute is only valid
when the post method is selected.
sendreferer Specifies whether or not the browser sends the URL of the current deck along with the URL request. If
you choose true, the server can control access to the destination card based on the current deck.
4 Add a setvar or postfield element to the task.
See also
“To set variables or postfield elements in a WML deck” on page 477
Getting user input in WML decks
Creating text and selection fields
You can capture input from users with the following WML elements:
input Creates a text entry field.
fieldset Creates a grouping of text entry fields.
select Creates a list of options from which a user can choose.
option Adds a single option to a selection list.
optgroup Groups options together in a selection list.
To create a text entry field
1 Drag the Input icon from the WML Elements set in the objects toolbox into the document window. Release the
mouse button when the pointer is in the desired location in a paragraph.
2 In the Input Inspector, specify the name of the variable to set with the user’s input in the Name text box.
3 Set the following optional attributes in the Input Inspector:
type Specifies whether a user will enter text or a password. If you choose password, the WML browser can obscure
the text while a user enters it, such as displaying asterisks in place of characters.
emptyok Specifies whether or not the user is required to enter text in the input area. If you choose False, the user
must enter text before continuing.
size Specifies the width in characters on the input area. Some browsers may ignore this attribute.