Adobe GOLIVE CS2 User Manual page 487

Hide thumbs Also See for GOLIVE CS2:
Table of Contents

Advertisement

The following elements let you bind a task to an event:
Specifies a task to be executed when an intrinsic event occurs. An intrinsic event is generated when a user
onevent
interacts with an element in the WML deck. For example, a user entering a card via the go element is an intrinsic
event.
Specifies a task to be executed when an extrinsic event occurs. An extrinsic event is generated when a user presses
do
a key on the device. For example, a user pressing a soft key is an extrinsic event.
You can add these event-binding elements to both cards and templates. When you add a do element or onevent
element to a template, the events apply to all the cards in a deck.
See also
"Using tasks in WML decks" on page 478
To add an onevent element
1
Drag the Onevent 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 card element, template element, or option element.
2
Choose the type of event to which you want to bind the task from the type pop-up menu.
Add a task to the onevent element.
3
To add a do element
Drag the Do icon from the WML Elements set in the objects toolbox into the document window. Release the
1
mouse button when the pointer is over the colored area of a card or template element.
2
Choose the type of event to which you want to bind the task from the type pop-up menu.
Set the following optional attributes in the Do Inspector:
3
Specifies a text label for the element. A WML browser may display the text as a graphical button. Limit labels
label
to six characters or fewer to prevent truncation of the text.
name
Specifies a name for the event binding.
optional
Specifies whether or not the browser can ignore the do element.
Specifies the language of the element or its attributes.
xml:lang
4
Add a task to the do element.
Using tasks in WML decks
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:
Navigates to a URL.
go
Navigates to the previous URL or the last viewed page.
prev
refresh
Refreshes the content of a card.
noop
Specifies that nothing should be done.
ADOBE GOLIVE CS2
478
User Guide

Advertisement

Table of Contents
loading

Table of Contents