過去のナビゲーションリンクのスキップSecure Global Desktop 4.31 管理者ガイド > アプレット > suspendApplication (端末エミュレータアプレット)

suspendApplication (端末エミュレータアプレット)

構文

過去のコマンド構文またはプログラムコードのスキップvoid suspendApplication()

説明

The suspendApplication method suspends or ends the current emulator session:

過去のコマンド構文またはプログラムコードのスキップ<SCRIPT LANGUAGE="JavaScript">

window.onerror = trapError

function trapError(message, url, line) {
   alert("There's no terminal emulator session to stop");
   return true
}

function stopEmulator() {
   top.WebtopFrame.DisplayFrame.document.applets["Tarantella Terminal Emulator"].suspendApplication();
   alert("Terminal emulator session stopped");
}

</SCRIPT>

<FORM>
   <INPUT TYPE=button VALUE="Stop" onclick="stopEmulator()">
</FORM>

This example adds a button beneath the links on users' webtops. When a user clicks this button, Secure Global Desktop stops the current terminal emulator session, if one is running.

Add the code to the HTML document containing the webtop tray applet (left.html, in the sco/tta/standard webtop theme), after the TTAAPPLET declaration.

This example assumes you are using the sco/tta/standard webtop theme. If you're using another theme, with different frame names and layouts, or different applet names, you'll need to modify the lines that invoke the suspendApplication method to access the terminal emulator applet used by your new theme.

関連トピック