Providing access to menu commands with images and the API

This sample code demonstrates how to use images with the Reflection application programming interface (API) to provide access to specific menu functions for an embedded session. This is particularly useful when you want to restrict your user's access to certain functionality. The applet launches the terminal session embedded in the browser window (the shortcut menu is not enabled), and the code is designed for Internet Explorer and Firefox browsers.

To start a terminal session using this sample

  1. Copy the JavaScript code and applet tag below to an HTML file. (If there are two or more applets on the page, confirm that each applet in the file has a different name.)

  2. In the hostURL parameter, replace myHost with the name or URL of the host to which you want to connect. If you choose not to connect automatically, delete the hostURL and autoconnect parameters.

  3. Save the file in the deploy folder.

  4. Copy the images used by this page (Screen.gif, Palette.gif, and Key.gif) to the session folder. (Note that this is a different folder than the one in which the HTML file is stored.) The .gif files used in this sample are stored in the following folder of the Administrative Console: <WebStation installation folder>\admin\en\html\advanced\sample_images\

    In addition to the images used in this sample, there are other images in the sample_images folder that can be used to provide user access to menu functions.