spacer

Webref WebRef   Sitemap · Experts · Tools · Services · Newsletters · About i.com

home / experts / javascript / column61


Introducing WML and WMLScript

Developer News
News Flash: Adobe Has iPhone Workaround
Adobe's Flash 10.1 Goes Mobile (Minus iPhone)
A Salute to Visionary CEOs

The WML Deck

<?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="Currency" newcontext="true">
    <p>
    Amount: <input format="*N" name="amount" title="Amount:"/>

    From: <select name="from" value="USD" title="From:">
          <option value="DEM">German Mark</option>
          <option value="FRF">French Franc</option>
          <option value="FIM">Finnish Markka</option>
          <option value="USD">US Dollar</option>
    </select>

    To: <select name="to" value="FIM" title="To:">
        <option value="DEM">German Mark</option>
        <option value="FRF">French Franc</option>
        <option value="FIM">Finnish Markka</option>
        <option value="USD">US Dollar</option>
    </select>

    <br/> = <u>$(conversion)</u>

    <do type="accept" label="Calculate">
      <go href="currency.wmls#convert('conversion','$(from)','$(to)',$(amount))"/>
    </do>

    <do type="help" label="Help">
      <go href="#card1_help"/>
    </do>
    </p>
  </card>

  <card id="card1_help" title="Help">
    <onevent type="onenterforward">
      <go href="currency.wmls#getInfoDate('date')"/>
  </onevent>

  <p>
      The currency rates were obtained from the Federal
      Reserve Bank of New York on $(date).

    <do type="prev" label="Back">
      <prev/>
    </do>
    </p>
  </card>
</wml>

Next: The WMLScript Script

http://www.internet.com

Produced by Yehuda Shiran and Tomer Shiran

internet.commediabistro.comJusttechjobs.comGraphics.com

Search:

WebMediaBrands Corporate Info

Legal Notices, Licensing, Reprints, Permissions, Privacy Policy.
Advertise | Newsletters | Shopping | E-mail Offers | Freelance Jobs

webref The latest from WebReference.com Browse >
Building a Banking Application Home Page with OOP · Mixing Scripting Languages · Review: phpFox, a Social Networking CMS with all the Bells and Whistles
Sitemap · Experts · Tools · Services · Email a Colleague · Contact FREE Newsletters 
 The latest from internet.com
Enterprise 2.0: Social Networking in the Cloud · BroadSoft Marketplace Hastens Pace of Telephony Innovation · Review: HTC Hero for Sprint


Created: May 8, 2000
Revised: May 8, 2000

URL: http://www.webreference.com/js/column61/8.html