Monday, 23 January 2012


WML Program to Display Template

Code:
/*WML Program to Display Template*/
<?xml version="1.0"?>
<!DOCTYPE wml PUBLIC "-//WAPFORAM//DTD WML 1.2//EN"
"http:??www.wapforum.org/DTD/wml12.dtd">
<wml>
<template>
<do name="main_menu" type="accept" label="chapters">
<go href="#chapters"/>
</do>
<do name="menu_1" type="accept" label="chapter1">
<go href="#chapter1"/>
</do>
<do name="menu_2" type="accept" label="chapter2">
 <go href="#chapter2"/>
</do>
<card id="chapters" title="WML Tutorial"?
<p>
select one chapter:<br />
         <anchor>
<go href="#chapter1"/>
chapter1: WML Overview
       </anchor><br />
<anchor>
<go href="#chapter2"/>
chapter2: WML Environment
</anchor><br />
</p>
</card>
<card id="chapter1" title="WML Tutorial ch1">
<p>
<em>Chapter 1: WML Introduction</em><br />
</p>
</card>
<card id="chapter2" title="WML Environment ch2">
<p>
<em>Chapter 2: WML Environment</em><br />
</p>
</card>
</wml>

Sample Output

Comment bellow for Query and Feedback :)

Related Posts :



0 comments:

Confused? Feel free to ask

Post a Comment