Event

do onevent postfield timer

do
Provides a general mechanism for performing actions on the current card.
The representation of the do tag is dependent on the device and the author must only assume that the tag is mapped to a unique user interface widget, such as a button, that the user can activate. The do tag may appear at both the card and deck-level:
Card-level: the do tag may appear inside a card tag and may be located anywhere in the text flow.
Deck-level: the do tag may appear inside a deck template, indicating a deck-level do tag. A deck-level do tag applies to all cards in the deck, and is equivalent to having specified the do within each card. For the purposes of rendering, the browser must behave as if deck-level do tags are located at the end of the card's text flow.
A card-level do tag overrides (or "shadows") a deck-level do tag if they have the same name. For a single card, the active do tags are defined as the do tags specified in the card, plus any do tags specified in the deck's template and not overridden in the card.
Non-active do tags and active do tags with a noop task are not displayed. All active do tags with a task other than noop will be shown in some manner. When the user activates the do tag, the associated task is executed.
attributes

type
Provides a hint to the browser about the author's intended use of the tag and how the tag should be mapped to the physical user interface: 'accept' (positive acknowledgement); 'prev' (backward history navigation); 'help' (request for help); 'reset' (clearing or resetting state); 'options' (request for options or additional operations); 'delete' (delete item or choice); 'unknown' a generic do element.
label
Specifies a textual string suitable for labeling the user widget. To work well on a variety of browsers, labels should be six characters or shorter in length.
name
Specifies the name of the do event binding.
optional
If true, the browser may ignore this element.
xml:lang
Specifies the natural or formal language in which the document is written.
id
Provides an element with a unique name within a single deck.
class
Affiliates an element with one or more classes.

onevent
Binds a task to a particular intrinsic event for the immediately enclosing element.
For example, specifying an onevent element inside a card element associates an intrinsic event binding with that card element.
The browser will ignore any onevent element specifying a type that does not correspond to a legal intrinsic event for the immediately enclosing element.
attributes

name
Indicates the name of the intrinsic event.
id
Provides an element with a unique name within a single deck.
class
Affiliates an element with one or more classes.

postfield
Specifies a field name and value for transmission to an origin server during a URI request. The actual encoding of the name and value will depend on the method used to communicate with the origin server.
attributes

name
Specifies the variable name.
value
Specifies the variable value.
xml:lang
Specifies the natural or formal language in which the document is written.
id
Provides an element with a unique name within a single deck.
class
Affiliates an element with one or more classes.

timer
The timer element declares a card timer which exposes a means of processing inactivity or idle time. The timer is initialised and started at card entry and is stopped when the card is exited. Card entry is any task or user action that results in the card being activated, for example, navigating into the card. Card exit is defined as the execution of any task. The value of a timer will decrement from the initial value, triggering the delivery of an ontimer intrinsic event when it reaches zero. Note that timer resolution and the interaction of the timer with the browser's user interface and other time-based device functionality is implementation dependent.
It is an error to have more than one timer element in a card.
The timer timeout value is specified in units of one-tenth (1/10) of a second. The author should not expect a particular timer resolution and should provide the user with another means to invoke a timer's task. A timeout value of zero disables the timer.
Invoking a refresh task is considered an exit. The task stops the timer, commits its value to the context, and updates the browser accordingly. Completion of the refresh task is considered an entry to the card. At that time, the timer must resume.
attributes


name
Specifies the name of the variable to be set with the value of the timer. The name variable's value is used to set the timeout period upon timer initialisation. The variable named by the name attribute will be set with the current timer value when the card is exited or when the timer expires. For example, if the timer expires, the named variable is set to a value of zero.
value
Indicates the default value of the variable named in the name attribute - that is the timer value. When the timer is initialised and the variable named in the name attribute is not set, the name variable is assigned the value specified in the value attribute. If the name variable already contains a value, the value attribute is ignored. If the name attribute is not specified, the timeout is always initialised to the value specified in the value attribute.
id
Provides an element with a unique name within a single deck.
class
Affiliates an element with one or more classes.
xml:lang
Specifies the natural or formal language in which the document is written.