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
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.
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.
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.
Webmaster 23rd of May 2012
Tell us what you feel about WMLScript Interview Questions and Answers
All comments will be published after review. No login or registration is required to post a comment on WMLScript Interview Questions and Answers We offer and invite you to submit your valuable comment now; Please be respectful of others when commenting. Insulting others, self-promotional comments, website promotional comments, marketing stuff, SEO Techniques, SMS-style content and off-topic comments will not be approved at this information portal.
So start sharing your thoughts regarding WMLScript Interview Questions and Answers
Thank you.