Java Reference
In-Depth Information
WMLBrowser
Library
The
WMLBrowser
library contains functions by which WMLScript can access the associated
WML context. These functions must not have any side effects and must return invalid in cases
where the system does not support
WMLBrowser
and where the WML Browser does not invoke
the interpreter.
getCurrentCard()
—The
getCurrentCard
Function
getCurrentCard()
Returns the relative URL of the current card.
getVar()
—The
getVar
Function
getVar(
name
)
Returns the value of the specified variable.
go()
—The
go
Function
go(
url
)
Loads and transfers focus to the given
url
.
newContext()
—The
newContext
Function
newContext()
A type of “reset” function; clears all present variables and clears the navigation history stack.
prev()
—The
prev
Function
prev()
Returns focus back to the previous WML card.
refresh()
—The
refresh
Function
refresh()
Forces a refresh of the WML Browser based on current context and variable values.
setVar()
—The
setVar
Function
setVar(
name
,
value
)
Sets the value of a local deck variable.