Modifying the Applet tag

To enable the JSEventNotifier module, add the following parameter to the APPLET tag of the web page that launches your Reflection terminal session:

<param name="onStartupJavaClass" value="com.wrq.eNetwork.ECL.modules.JSEventNotifier">

In addition, add the MAYSCRIPT attribute to the APPLET tag. The MAYSCRIPT attribute allows a Java applet (Reflection, in this case) to communicate with JavaScript, in addition to the JavaScript-to-Java communication that's always available.

Depending on how your session is generated, you might add these values using the Applet Parameters section of the Manage Sessions panel in the Administrative Console, or by manually editing the HTML page that launches your session.

An applet tag for an IBM 3270 session might look something like this:

<APPLET name="JSSession" CODE="com.wrq.rweb.Launcher" codebase="./ex"
      width=800 height=600 archive="Launcher.jar" MAYSCRIPT>
   <param name="launcher.sessions" value="IBM3270">
   <param name="prefsName" value="myIBMsession">
   <param name="hostURL" value="tn3270://myhost.mycorp.com">
   <param name="onStartupJavaClass" value="com.wrq.eNetwork.ECL.modules.JSEventNotifier">
</APPLET>

NOTE:If you use the JSEventNotifier module to receive initial notification, you can omit the parameter preloadJSAPI from the Reflection applet tag. If you do include both parameters, you should also include a JavaScript function called jsapiInitialized in your script. Some browsers, such as Firefox, will not call the ECLInitComplete function described next if the jsapiInitialized function is not also present but is called because the preloadJSAPI parameter is set.