Page 101 - DCAP512_WAP_AND_WML
P. 101
Unit 7: Managing Outputs
Fieldset Notes
A WML card, can be set up to display the fieldset function of 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=”Fieldset”>
<p><fieldset title=”CD Info”>
Title: <input name=”title” type=”text”/><br/>
Prize: <input name=”prize” type=”text”/>
</fieldset>
</p>
</card>
</wml>
The result MIGHT look like this in your mobile phone display:
Top of Form
------- Fieldset--------
CD Info Title:
Prize:
Bottom of Form
Decks and Cards
WML pages are often called “decks”. A deck contains a set of cards. A card element can contain text,
markup, links, input-fields, tasks, images and more. Cards can be related to each other with links.
When a WML page is accessed from a mobile phone, all the cards in the page are downloaded
from the WAP server. Navigation between the cards is done by the phone computer - inside the
phone - without any extra access trips to the server:
<?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=”no1" title=”Card 1">
<p>Hello World!</p>
</card><card id=”no2" title=”Card 2">
<p>Welcome to our WAP Tutorial!</p>
LOVELY PROFESSIONAL UNIVERSITY 95