Method: getTimeLeft()

E.g. var timeleft = ViewONE.getTimeLeft();

This method returns the time in seconds left before the applet times-out. but only if the setTimeout() method or HTML tag “timeout” has been used to set the time in the first place. It otherwise returns 0. The time left is automatically reset each time the user performs any action, such as scrolling, changing pages, zooming etc.

Method: wakeUp()

E.g. ViewONE.wakeUp();

This method will wake-up the applet if it has timed out (see setTimeout()). The user will then be able to use the applet as normal.

Security note: This method is disabled by default unless the “JavascriptExtensions” parameter is set to “true”.

81

Page 81
Image 81
JAVA Tech VERSION 3.0 manual Method getTimeLeft