Answer:
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.
Previous Question | Next Question |
Can I use embedded WMLScript in my WML pages? | Which functions are available in the WMLscript Lang library? |