Proceed to WirelessDevNet Home Page
Publications, e-books, and more! Community Tutorials Store Downloads, tools, & Freebies! IT Career Center News Home
newnav.gif

Newsletters
EMail Address:



   Content
  - Articles
  - Columns
  - Training
  - Library
  - Glossary
 
   Career Center
  - Career Center Home
  - View Jobs
  - Post A Job
  - Resumes/CVs
  - Resource Center
 
   Marketplace
  - Marketplace Home
  - Software Products
  - Wireless Market Data
  - Technical Books
 
   News
  - Daily News
  - Submit News
  - Events Calendar
  - Unsubscribe
  - Delivery Options
 
   Community
  - Discussion Boards
  - Mailing List
  - Mailing List Archives
 
   About Us
  - About WirelessDevNet
  - Wireless Source Disks
  - Partners
  - About MindSites Group
  - Advertising Information
 
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
Sponsors

Search

Eliminate irrelevant hits with our industry-specific search engine!









Wireless Developer Network - A MindSites Group Trade Community
Copyright© 2000-2010 MindSites Group / Privacy Policy
Send Comments to:
feedback@wirelessdevnet.com