過去のナビゲーションリンクのスキップSecure Global Desktop 4.31 管理者ガイド > アプレット > launchByObjectNumber (Webtop スクリプトアプレットおよび Webtop トレイアプレット)

launchByObjectNumber (Webtop スクリプトアプレットおよび Webtop トレイアプレット)

構文

過去のコマンド構文またはプログラムコードのスキップstring launchByObjectNumber(int objectNumber)

説明

Activates the specified link, just as if a user had clicked it on their webtop.

objectNumber specifies a link on the webtop. The value 0 specifies the first link on the webtop, 1 the second and so on.

You can use the applet's ObjectNumber parameter to change the number from which links are numbered (default is zero).

This method returns OK if Secure Global Desktop successfully launches the application (or displays the document) represented by the link, and Error otherwise.

This method can be used with either the webtop script applet or the webtop tray applet.

過去のコマンド構文またはプログラムコードのスキップ<SCRIPT LANGUAGE="JavaScript">
 
function launchFirstLink() {
   document.applets["Tarantella Webtop"].launchByObjectNumber(0);
}
 
</SCRIPT>
 
<FORM>
   <INPUT TYPE=button VALUE="Activate First Link" onclick="launchFirstLink()">
</FORM>

This example adds a button beneath the links on users' webtops. When a user clicks this button, Secure Global Desktop activates the first link on their webtop.

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 line that invokes the launchByObjectNumber method to access the webtop tray applet used by your new theme.

関連トピック