WML » Tags » noop

Syntax:
<noop />

The noop tag dictates that no operation should be done. This tag can be used on the card level to prevent an event, specified on the deck level by the template element, from occurring.

This is referred to as a noop task. A task is performed in response to an event. There are four tasks in WML: go, noop, prev, and refresh.
 
It can only be contained in either a do or onevent element.
 
This is a self-closing tag.
 
Nested Tags:  None

Examples

Code:
<?xml version="1.0"?>
<!DOCTYPE wml PUBLIC "-//WAPFORUM//DTD WML 1.1//EN"
"http://www.WAPforum.org/DTD/wml_1.1.xml">
<wml>

<template>
   <do type="prev" label="back">
      <prev />
   </do>
</template>

<card id="card1" title="Card 1">
<p>
   <a href="#card2">
Go to Card 2</a>
</p>
</card>

<card id="card2" title="Card 2">
<p>
<do type="prev">
   <noop />
</do>
DevGuru is great!</p>
</card>

</wml>
Explanation:

This example uses the template and do tags to add a "back" hyperlink to each card. However, the use of the noop tag prevents the display of this back link in card2.

Language(s): WML

See Also: