|
Newsletters
|
|
|
|
|
WMLScript Reference
WMLScript Reference
WMLScript > WMLBrowser > refresh()
refresh() - The refresh Function
Usage: refresh()
Description: The WML Browser should update its user interface based on the current context. Implementations that support refresh must perform the steps defined in [WML] with the exception to restarting a suspended timer. This function must not restart a suspended timer. This function must block until all the steps have completed. The refresh actions must be applied to the current WML card. If the current WML card was not rendered prior to invoking this call (e.g., a script that was invoked by an onenterforward event binding), the refresh function must render the current card.
This function returns invalid if the current implementation does not support immediate refresh. Otherwise, this function returns an empty string if the refresh succeeds, or a non-empty string if it fails (e.g., failed to update an image). The content of the string is implementation dependend. The function should return a brief message explaining the error.
Note: if the current implementation does not support refresh, the WML user agent must still refresh the card when control returns back to the WML user agent.
Example:WMLBrowser.setVar("name","Zorro");
var refreshOK = WMLBrowser.refresh();
Bookmark this page
|
|