wap wml xml wbmppicture of phone WAPtutor

15 Templates

Many cards need linking back to the previous card. For example each card may have information about a specific subject within the deck, but all cards are accessed from the main card. To save on time in both writing the wml code, in download of each deck, a link can be created on each card using a template.

The template is positioned between the opening <wml> tag and the first card.

The template code is nested within <template> tags, and consists of a do command, written as a tag with a required type attribute describing what do performs, in this case prev for previous, and a label attribute which is displayed as a button at the bottom of each card in the deck. Keep the label to 6 characters or less, or it may not display. The label is activated by pressing an associated key on the wap device. Note the type attribute requires an additional single tag.

<template>
<do type='prev' label='Back'>
<prev/>
</do>
</template>

The template command can be cancelled on an individual card basis using a noop (no operation) command, which is positioned after the opening card tag but above the first paragraph tag in the card.

<do type='prev' label='Back'>
<noop/>
</do>

< BACK   NEXT  >

Order Your Kaspersky Anti-Virus GOLD Now!

 
Introduction

1 Preparation
2 Markup Language
3 Addresses
4 Cards and Decks
5 Tags
6 Formatting
7 Attributes
8 Nesting
9 Space
10 Links
11 Images
12 Symbols
13 Requirements
14 Tables
15 Templates
16 Sample
17 Hints
18 Publishing
19 Promotion

WAPlinks
Glossary

Type in WAP
site address


 

Text Addict - Feed your Habit

Web design by www.littledetails.co.uk