WML events are basically divided into two categories: keyboard (including soft and hard buttons) input events, processed using the <do> tag, and related page events, use the <onevent> label for processing.
<Do> Syntax: <do type = "type" label = "label" name = "name" optional = "false | true"> task </do>, A task is one of the four previously mentioned tasks. In the <do> attribute, type is mandatory, and others are optional.
* Label attribute, which specifies the text displayed by the soft button on the screen. The current type attribute is delete, help, And prev, which is invalid.
* Name attribute, Which is <do> name. The <do> name in the same CARD cannot be duplicate. If the <do> and <do> of the CARD level have the same name, the <do> of the DECK level is overwritten.
* The optional attribute specifies whether the mobile phone can ignore this event. The default value is false.
* Type attribute, specifying the event to be triggered, as shown in the following code;
Reason for triggering the type value
Accept Calls the ACCEPT button Mechanism
Delete: Call the DELETE button Mechanism
Help call the HELP button Mechanism
Options call the select button Mechanism
Prev call the PREV button Mechanism
The reset mechanism when the RESET Call clears and resets the mobile phone status (not supported currently)
Unknown calls the unknown mechanism, which is equal to type = "" (not supported currently)
<Option title = "Shanghai" value = "Shanghai" onpick = "# card01"> Shanghai </option>
<Option title = "Hongkong" value = "Hongkong" onpick = "# card01"> Hongkong </option>
</Select>
& Lt;/p>
</Card>
<Card id = "card01">
<P>
You are Living in $ (city: noesc)
</P>
</Card>
</Wml>
<Timer/> it can be used to automatically execute a task after the user does not perform any operation for a period of time. Any task that activates the CARD page and user operations will start <timer/>, when the task is in progress, <timer/> stops. Each CARD can have only one <timer/> and one <timer/> can trigger only one task. Syntax: <timer name = "variable" value = "value"/> where name is an optional attribute and is specified as a variable name. When you exit the CARD, this variable stores the timer value at this time. When the timer times out, the mobile phone sets this variable to 0; value is a required attribute, used to set the timer value of the timer, the minimum unit is 0.1 seconds.
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.
A Free Trial That Lets You Build Big!
Start building with 50+ products and up to 12 months usage for Elastic Compute Service