This method creates an instance of an Ephox EditLive! for Java Javascript object.
JavaScript object = new EditLiveJava(strName, intWidth, intHeight) ;
strName Required. A unique string identifier for this instance of EditLive! for Java. intWidth Required. An integer specifying the width of the applet when displayed. intHeight Required. An integer specifying the height of the applet when displayed.
The following code creates an EditLive! for Java object and assigns the identifier editlivejava1 to the JavaScript variable. The object has a unique name of ELJApplet1, a width of 600 pixels and a height of 400 pixels.
var editlivejava1;
editlivejava1 = new EditLiveJava("ELJApplet1","600","400");
The constructor must be called before any operations can occur on the EditLive! for Java object.
Ephox recommends setting the width and height in pixels, as on Macintosh machines, if these values are set as percentages and the Web browser window is resized, EditLive! for Java will not be resized with the window.
Copyright © 2001-2004 Ephox Corporation. All Rights Reserved.