WMLScript is a subset of the JavaScript scripting language designed as part of the WAP standard to provide a convenient mechanism to access mobile phone’s peripheral functions.
No, you cannot use embedded WMLScript in your WML pages. You need to place your scripts in seperate files and reference them from your WML decks. Check the WMLScript tutorial to see how it's done.
The purpose of WMLScript is to provide client-side procedural logic. It is based on ECMAScript (which is based on Netscape’s JavaScript language), however it has been modified in places to support low bandwidth communications and thin clients. The inclusion of a scripting language into the base standard was an absolute must. While many Web developers regularly choose not to use client-side JavaScript due to browser incompatibilities (or clients running older browsers), this logic must still be replaced by additional server-side scripts. This involves extra roundtrips between clients and servers which is something all wireless developers want to avoid. WMLScript allows code to be built into files transferred to mobile client so that many of these round-trips can be eliminated. When you need to add interactivity to your WML-pages, such as user input, you should use WMLScript.
The functions in this section are accessed by Lang.functionName abs(number) returns the absolute value of number min(number1,number2) returns smallest of number1 and number2, or number1 if equal min(number1,number2) returns largest of number1 and number2, or number1 if equal parseInt(string) returns the integer value of string parseFloat(string) returns the floating point value of string isInt(string) returns true if string can be converted to an integer isFloat(string) returns true if string can be converted to a floating point value maxInt() returns the maximum supported integer value

Select appropriate Question to view its more answers in this category of
Do you find any Answer incorrect or incomplete? Please e-mail us or
place your comment and mention the number of question or if you have correct answer then
open the appropriate question by clicking on question and then place your answer in comment
regarding particular question in this category "WMLScript Interview Questions and Answers" To ensure quality,
each change is checked by our team, before it enters the main website
database. If you desire so, the changes will be credited to your name.
Webmaster Said:
Thank you.