Launcher Control Scripting Code Sample

This code sample shows how to call properties of the session object of the EXTRA! X-treme Launcher ActiveX control from an HTML page.

<HTML><HEAD><TITLE>Sample HTML Page</TITLE>

<SCRIPT LANGUAGE="JavaScript">
function mylaunchfunction()
{
  launcher.launchfile="TN3270.EDP";
  launcher.embedded=true;
  launcher.onclose="close";

  launcher.launch();
}

function connect()
{
  launcher.session.Connected(true);
}

function disconnect()
{
   launcher.session.Connected(false);
}

</SCRIPT></HEAD>

<BODY ONLOAD="mylaunchfunction()">

<H1>EXTRA! X-treme Terminal</H1>
<BR>

<OBJECT ID="launcher" CLASSID="clsid:036E962F-9B09-43A1-9D3D-DB619F3EA70C" HEIGHT="300" WIDTH="500"></OBJECT>

<BR><BR>
<BUTTON NAME="Test" ONCLICK="connect()">Connect</BUTTON>
<BUTTON NAME="Test" ONCLICK="disconnect()">Disconnect</BUTTON>

</BODY></HTML>
Related Topics
Bullet Adding Sessions to a Portal, Overview
Bullet Adding a Session to any Web Page
Bullet Launcher Control Property Descriptions
Bullet Adding a Session to a Presentation
  Attachmate