www.openwave.com

WMLScript Reference


Chapter 1: Introduction

What You Should Already Know

Conventions Used in this Manual

Chapter 2: Lexical Structure

Case Sensitivity

Whitespace and Line Breaks

Comments

Literals

Integer Literals

Floating-Point Literals

String Literals

Boolean Literals

Invalid Literals

Reserved Words

Chapter 3: Variables and Data Types

Variables

Declaration

Scope and Lifetime

Access

Data Types

Integer Size

Floating-Point Size

String Values

Boolean Values

Chapter 4: Pragmas

External Files

Access Control

Meta-Information

Name

HTTP Equiv

User Agent

Chapter 5: Operators and Expressions

Assignment Operators

Arithmetic Operators

Logical Operators

String Operators

Comparison Operators

Array Operators

Comma Operators

Conditional Operators

typeof Operators

isvalid Operators

Expressions

Chapter 6: Functions

Function Declarations

Function Calls

Local Script Functions

External Functions

Library Functions

Chapter 7: Statements

Empty Statements

Expression Statements

Block Statements

Variable Statements

If Statements

While Statements

For Statements

Break Statements

Continue Statements

Return Statements

Chapter 8: Libraries

Notational Conventions

Lang Library

abort

abs

characterSet

exit

float

isFloat

isInt

max

maxInt

min

minInt

parseFloat

parseInt

random

seed

Float Library

ceil

floor

int

maxFloat

minFloat

pow

round

sqrt

String Library

charAt

compare

elementAt

elements

find

format

insertAt

isEmpty

length

removeAt

replace

replaceAt

squeeze

subString

toString

trim

URL Library

escapeString

getBase

getFragment

getHost

getParameters

getPath

getPort

getQuery

getReferer

getScheme

isValid

loadString

resolve

unescapeString

WMLBrowser Library

getCurrentCard

getVar

go

newContext

prev

refresh

setVar

Dialogs Library

alert

confirm

prompt

Console Library

Print

Println

Appendix A: Conversion Tables

Glossary

Index