You are on page 1of 2

http://support.hostingoperations.com/index.php?

_m=knowledgebase&_a=viewarticle&kbarticleid=99

WAP/WML Tutorial
Author:

Thinkhost, Inc.
Created On: 23 Jan 2008 01:57 AM Our hosting plan supports WAP/WML! Want to create WML pages that can be read by WAP enabled phones? It's very easy - you probably already have the tools! A WML editor can be something as simple as NotePad, FrontPage or Dreamweaver The best way to illustrate a wml page is to think of it in terms of a deck of cards - with a single page being the deck and cards being separated code on the page. Try this out:

Open Notepad or your WYSIWYG editor. If you are using Dreamweaver or FrontPage, delete any code in the source of the page Copy and paste this code into the source (FP users, paste into NotePad first and then copy from there): <?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="card1" title="TEST CARD 1"> <p align="center"> <do type="accept" label="Go to card 2"> <go href="#card2"/> </do> <br/> WAP test <br/> This the 1st card. <br/> For the 2nd card, <br/> <a href="#card2">click here</a> </p> </card> <card id="card2" title="TEST CARD 2"> <p align="center">

Page 1/2 Powered by Kayako SupportSuite Help Desk Software

http://support.hostingoperations.com/index.php?_m=knowledgebase&_a=viewarticle&kbarticleid=99

<do type="accept" label="Back to card 1"> <go href="#card1"/> </do> <br/> This is the 2nd card <br/> To go back, <br/> <a href="#card1">click here</a> </p> </card> </wml> Now save the deck as test.wml and upload to your account. Test your page by entering in the URL of the test deck into this WAP emulator. Note: Online emulators can be a little buggy, but it will give you an idea of how things work. If the online emulator isn't working, you can download a free desktop emulator. As you can see, setting up a basic WAP deck is very simple. WML is capable of more complex functions of course, and a good resource is the WAP Tutorial from W3Schools.

Page 2/2 Powered by Kayako SupportSuite Help Desk Software

You might also like