Page 202 - DCAP512_WAP_AND_WML
P. 202
WAP & WML
Notes </card>
</wml>
11. Example of Anchor Tag In WML
<?xml version=”1.0"?>
<!DOCTYPE wml PUBLIC “-//WAPFORUM//DTD WML 1.1//EN”
“http://www.wapforum.org/DTD/wml_1.1.xml”>
<wml>
<card title=”Messages”>
<p>
<anchor>Inbox<br/>
<go href=”table.wml”/>
</anchor>
<anchor>Sent
<go href=”table.wml”/>
</anchor>
</p>
</card>
</wml>
12. Example of ONPICK Event In WML
<?xml version=”1.0"?>
<!DOCTYPE wml PUBLIC “-//WAPFORUM//DTD WML 1.1//EN”
“http://www.wapforum.org/DTD/wml_1.1.xml”>
<wml>
<card id=”one” title=”Make ur choice”>
<p>
<select name=”choice”>
<option onpick=”#p1" value=”BBA”>BBA</option>
<option onpick=”#p2" value=”BCA”>BCA</option>
<option onpick=”#p3" value=”Msc”>Msc</option>
</select>
</p>
</card>
<card id=”p1" title=”Ur choice”>
<p>
Your choice is BBA
</p>
</card>
<card id=”p2" title=”Ur choice”>
<p>
Your choice is BCA
</p>
</card>
196 LOVELY PROFESSIONAL UNIVERSITY