Introducing WML and WMLScript: The WML Code | WebReference

Introducing WML and WMLScript: The WML Code


Introducing WML and WMLScript

The WML Deck

<?xml version="1.0"?>
<!DOCTYPE wml PUBLIC "-//WAPFORUM//DTD WML 1.1//EN" "https://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

https://www.internet.com

Produced by Yehuda Shiran and Tomer Shiran

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

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