![]() |
Chapter 1: Introduction
What You Should Already Know
WMLScript Versions
Conventions Used in this Manual
Chapter 2: WMLScript Overview
What is WMLScript?
Benefits of Using WMLScript
Device Types
Run-time Error Detection and Handling
Debugging WMLScript
Part 1: Language Features
Chapter 3: Essential Language Elements
Lexical Structure
Case Sensitivity
Whitespace and Line Breaks
Comments
Literals
Integer Literals
Floating-Point Literals
String Literals
Boolean Literals
Invalid Literals
Variables
Declaration
Scope and Lifetime
Access
Data Types
Integer
Floating-point
String
Boolean
Reserved Words
Chapter 4: Operators and Expressions
Operators
Assignment Operators
Arithmetic Operators
Logical Operators
String Operators
Comparison Operators
Array Operators
Comma Operators
Conditional Operators
typeof Operator
isvalid Operator
Expressions
Chapter 5: Pragmas
External Files
Access Control
Meta-Information
Name
HTTP Equiv
User Agent
Chapter 6: Statements
Empty Statements
Expression Statements
Block Statements
If Statements
Variable Statements
While Statements
For Statements
Break Statements
Continue Statements
Return Statements
Chapter 7: Functions
Function Declarations
Function Calls
Local Script Functions
External Functions
Library Functions
Part 2: Application Development
Chapter 8: Calling WMLScript Functions from WML
How WML Interacts with WMLScript
Declaring a WMLScript External Function
Calling a Function and Passing Parameters or Setting Variables from WML
Processing Parameters or Variables Passed from WML
Receiving Variables from a WMLScript
Chapter 9: WMLScript Examples
Numeric Range Validation Example
What it Does
How it Works
Currency Converter Example
What it Does
How it Works
Basic Animation Example
What it Does
How it Works
Chapter 10: Debugging WMLScripts
Common Techniques
Using Console.print and Console.printLn
A Debug Example
Glossary
Index