Secure Global Desktop Administration Guide > Applets > scriptStart method
void scriptStart()
The scriptStart
method when used with the Scripting parameter
allows you to use JavaScript to release/wake-up the applet.
It can be used with the following Secure Global Desktop applets:
<SCRIPT Language="JavaScript"> function login() { user=document.FrmLogin.FldUsername.value; pass=document.FrmLogin.FldPassword.value; app=document.applets["TTAScript"] if(app.login(user,pass) == 0) { app.scriptStart() document.applets["TTAPrint"].scriptStart() } } </SCRIPT>
Defines a function that loads the Print applet only when the user has logged in using JavaScript. It assumes the webtop script applet (TTAScript) and the Print applet (TTAPrint) have been embedded on a page and that both applets have the Scripting parameter set to true. The page also contains an HTML form for collecting the username and password.
Copyright © 1997-2005 Sun Microsystems, Inc. All rights reserved.