JAVA Tech VERSION 3.0 manual Method getTimeLeft

Models: VERSION 3.0

1 88
Download 88 pages 5.41 Kb
Page 81
Image 81

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