Using tasks
Tasks specify processing that is performed in response to an event, such as a user pressing a key, entering a card, or activating a hypertext link. You add tasks to a card using the following elements: - The go element navigates to a URL.
- The prev element navigates to the previous URL or the last viewed page.
- The refresh element refreshes the content of a card.
- The noop element specifies that nothing should be done.
To add a go element: - Drag the Go icon from the WML Elements set in the Objects palette into the document window. Release the mouse button when the pointer is over the colored area of a do, onevent, or anchor element.
- In the Inspector, enter the URL of the card to display in the href text box.
- Set the following optional attributes in the Go Inspector:
- method to choose 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 to 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 to choose 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.
- Add a setvar or postfield element to the task. (See Using variables.)
To add a prev, refresh, or noop element: - Drag the Prev icon, the Refresh icon, or the Noop icon from the WML Elements set in the Objects palette into the document window. Release the mouse button when the pointer is over the colored area of a do, onevent, or anchor element.
- For prev and refresh elements, add a setvar element to the task. (See Using variables.)
|