Chapter 5. ? Basic JavaScript

Table of Contents
? ii_easel_support.js
? ii_easel.js
? ii_easel_utilities.js

The JavaScript which supports the basic behaviour of the applet is divided into 3 libraries, ii_easel_support.js, ii_easel.js and ii_easel_utilities.js.

? ii_easel_support.js

This library must be included in the page which contains the Easel applet . As well as the public interface below it provides various private services to the applet without which your application will probably not work.

easel_application_window = window

This variable holds the window in which the application's JavaScript is defined. By default it is the current window, i.e. the application is in the same window as the applet. However, for larger, multi-frame applications it may be more convinient to put the application's JavaScript elsewere, and this variable tells the applet where to look for callbacks and so on. Usually set in the onLoad function of the applet's window.

easel_applet_tag(name, dir, width, height, path)

This function writes the actual applet tag, <applet>. It knows about the differences between different browsers relevent to applications which use a signed version of the Easel applet .