Scripting
The basic functionality of WML is extended by WMLScript which provides the capability for client-side validation, user interaction, and client device access. WMLScript functions reside on the server and are referenced by two-part URLs. The first part describes the compilation unit (a file) containing the WMLScript function. The second part identifies the function and lists associated parameters. For example, the URL http:www.gov.ns.ca/health.wmls#checkInput(param1, param2) defines a call to the WMLScript function checkInput, located in health.wmls at www.gov.ns.ca. This function takes two parameters, param1 and param2.
Join us next time when we look at WMLScript, a complementary language that extends WML with programmatic power that enables us to do validation, numeric processing, dialogs, security, and more.