Skip past navigation linksSecure Global Desktop 4.31 Administration Guide > Applets > scriptStart method

scriptStart method

Syntax

Skip past command syntax or program codevoid scriptStart()

Description

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:

Examples

Skip past command syntax or program code<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.

Related topics