do
go
onevent
prev
refresh
template
WML TAG: noop
<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
Attributes
class
The optional
class
core attribute is used to assign one or more classes to the element. Multiple classes are separated by white space. The class name is case sensitive (i.e.,
Stocks
and
stocks
are not the same).
id
The optional
id
core attribute is used to assign a unique name to a tag. The name must be unique to the entire deck and not just unique to a card. The first character of the name can be a letter or the underscore. The remaining characters can be any combination of letters, numbers, or underscores.
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.
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>
Copyright 1999-2001 by Infinite Software Solutions, Inc. All rights reserved.
Trademark Information