WML Tutorial 5: Task and Task masking

Source: Internet
Author: User
Tags prev
Tutorial

Task and Task masking
Internal tasks
Back to <prev>

Use to press the URL of the current page into the URL history stack and open the previous URL, if the URL does not exist, <prev> is invalid. Syntax similar to <go>,<prev> and </prev> can be added to one or more sentences <setvar name= "name" value= "value"/>, if not added, you must <prev/ The form of > appears.

Refresh <refresh>

Used to refresh the current page so that the variables in the page are refreshed or empty, with the same syntax as prev. <refresh> <setvar name= "name" value= "value"/> </refresh>, or <refresh/>.

No action <noop>

Means nothing, the label can not be used in <anchor>, generally used in the coverage of deck-level <do>.

Task Shield (tasks shadowing)
The WML task has two levels, deck level, and card level. Usually people are also accustomed to set in certain conditions of the task to become the third level, not discussed here, followed by a special description.

Deck level: The common task is set in template, and all of the card in this Deck automatically inherits and uses these tasks.

Card level: Only valid in the current card, and replace the task with the same attributes for the deck level.

Example:

<wml>
<template>
<do type= "Options" Name= "General" label= "Back" >
<prev/>
</do>
</template>
<!--a deck level task-->

<card id= "Card1" >
<p>hello, this is a test <br/>
<a href= "#card2" >the second</a>
<p>
</card>

<card id= "Card2" >
<!--This card override the deck level task by NoOp-->
<do name= "General" type= "Options" label= "None" >
<noop/>
</do>
<p>nothing happend here</p>
</card>
</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.