WML Tutorial 7:WML Events

Source: Internet
Author: User
Tags prev
Tutorial WML Events
Internal events (Onevent)
Related properties:

Type: The trigger condition of the internal event, when the current browser state satisfies the trigger condition, the browser triggers the task set under this condition, and there are 4 triggering conditions for the internal event.

1 OnTimer meet the conditions set by the clock, this condition is set up. There is a special explanation for the clock setup issue.
2 Onenterbackward is returned to the current card through prev or other external commands, and the condition is established.
3 Onenterforward when the browser through the link into the current card, the condition is established
4 Onpick when using the option Control list, any click on the control will trigger this event, including selecting and removing the selection.

Example:

<?xml version= "1.0"?>
<! DOCTYPE WML public "-//wapforum//dtd WML 1.1//en" "http://www.wapforum.com/DTD/wml_1.1.xml" >
<wml>

<!--this deck can ' t-Ericsson R320SC, because R320SC Haven ' t accept button-->

<card id= "Start" >
<do type= "Accept" label= "Next" >
<go href= "#two"/>
</do>
<p>this is the card.</p>
</card>

<card id= "Two" >
<do type= "Accept" label= "Next" >
<go href= "#three"/>
</do>
<onevent type= "Onenterbackward" >
<go href= "#temp"/>
</onevent>
<p>this is the second card.</p>
</card>

<card id= "three" >
<do type= "Accept" label= "back" >
<prev/>
</do>
<p>this is the thired card.</p>
</card>

<card id= "Temp" >
<do type= "Accept" label= "Start" >
<go href= "#first"/>
</do>
<p>haha, you are lost!</p>
</wml>



Contact Us

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

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.