04 Jul 2008 
Support Center » Knowledgebase » Web Site Related » Design » WAP/WML Tutorial
 WAP/WML Tutorial
Solution Our hosting plans now support 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">
    <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. You can also try out our test page, http://www.thinkhost.com/wap-test.wml , by copying the URL into the WAP emulator or surfing to it on your WAP enabled cell phone or handset. 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.

Need WAP/WML hosting? Select from any of our web hosting plans - they all support WAP applications, plus come with some great bonuses!


Article Details
Article ID: 99
Created On: 22 Jan 2008 03:57 PM

 This answer was helpful  This answer was not helpful

 Login [Lost Password] 
Email:
Password:
Remember Me:
 
 Search
 Article Options
Home | Submit a Ticket | Knowledgebase | Support System FAQ | ThinkUpdate
Language: