WMLScript

Examples

<wml>
  <card id="card1" title="Random Number Example">
    <p align="center"> Select Random </p>
    <do type ="accept" label="Random">
      <go href="random.wmls#getRandom()"/>
    </do>
  </card>
  <card id="card2" title="Random Result">
    <p align="center"> Result: $(RESULT) </p>
  </card>
</wml>

extern function getRandom() {
    var r = Lang.random(100);
    WMLBrowser.setVar("RESULT", r);
    WMLBrowser.go(random.wml#card2");
}

Mortgage Example

 

Return to Programming the Wireless Web