過去のナビゲーションリンクのスキップSecure Global Desktop 4.31 管理者ガイド > アプレット > scriptStart メソッド

scriptStart メソッド

構文

過去のコマンド構文またはプログラムコードのスキップ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.

関連トピック