Page 132 - DCAP512_WAP_AND_WML
P. 132
WAP & WML
Notes <tr>
<td>Cell 1</td>
<td>Cell 2</td>
<td>Cell 3</td>
</tr>
</table>
</p>
</card>
</wml>
The result MIGHT look like this in your mobile phone display:
——— Table ———
Cell 1 Cell 2 Cell 3
Timer
A WML card can be set up to use the timer function of WML. The time unit of the timer is 1/10
of a second.
The example below will display a message for 3 seconds, and then take you to the file “test.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 ontimer=”test.wml”>
<timer value=”30"/>
<p>Some Message</p>
</card>
</wml>
Self Assessment
Fill in the blanks:
11. The time unit of the timer is ………………….. of a second.
12. ………………….. notifications can also be pushed to handheld clients via the Phone.com
Notification API.
13. The ………………….. application itself supports the creation, modification, and testing of
WML/WMLScript code within one application.
9.5 Delivering Data to Applications
In the earlier sections of this WML tutorial, we have mentioned about how to use input fields
and selection lists to create forms and obtain data from a user. In many situations, you need to
126 LOVELY PROFESSIONAL UNIVERSITY