addJar Property

This optional property specifies whether EditLive! for XML will use the advanced APIs. The advanced APIs allow developers to create their own Java classes to extend the core functionality of EditLive! for XML. For more information on the advanced APIs, see the Advanced API Guide packaged with this SDK.

Syntax

JavaScript

addJar(jarURL, loadClassName);

Parameters

jarURL

The URL specified location of the jar file used to instantiate the modified version of EditLive! for XML.

loadClassName

The fully qualified name of the .class file used to instantiate the modified version of EditLive! for XML. If this name is incorrect, the standard version of EditLive! for XML will load instead of the modified version.

Examples

Example 16.8. DownloadDirectory Property Example Scripting

The following code would specify using the NewApplet.class file, contained in MyApplet .jar to instantiate the modified version of EditLive! for XML. For this example the MyApplet.jar is located in the same directory as the page loading EditLive! for XML

JavaScript

editlivejs.addJar("MyApplet.jar", "NewApplet");

Remarks

In order to create a modified version of the EditLive! for XML applet, the advanced APIs must be used. These APIs are a combination of Java classes. Information on how to use the advanced APIs can be located in the Advanced API Guide packaged with this SDK.