scriptStart method

Syntax

void 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 Tarantella applets:

Examples

<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
  • How does Tarantella use applets?