21.4. Using WMLScript with WML pages
21.4.1. What is WMLScript and how does it work?
Basically, WMLScript is a client-side script language based on ECMAScript and dedicated for low-bandwidth devices such as a mobile phone. Many people may refer to WMLScript as the ECMAScript dialect for wireless applications. Unlike ECMAScript, WMLScript functions or statements are not defined inside a WML page. Instead, all WMLScript language or statements are stored in another file with file extension .wmls (Wireless Markup Language Script).
When your WML page calls a WMLScript function, you call the reference of the function by URL. When a function of WMLScript is called, the script is compiled into byte code by the WAP gateway and then sent to the micro-browser ...
Get Practical Web Technologies now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.