Running Examples

To run an Advanced API example the AddJar instantiation API has to be used when loading EditLive! for XML into a webpage. AddJar is explained in the following section.

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

Visual Basic Script

object.AddJar =jarURL

object.LoadClass = loadClassName

JSP Tag

prefix:ELXInstance addJar = jarURL

prefix:ELXInstance loadClass = loadClassName

ASP .NET

prefix:EditLiveXML AddJar = jarURL

prefix:EditLiveXML LoadClass = loadClassName

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 4.1. 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

VBScript

editlive1.AddJar = "MyApplet.jar"

editlive1.LoadClass = "NewApplet"

JSP Tag

<elj:ELXGlobal 
  ...
  addJAR = "MyApplet.jar"
  loadClass = "NewApplet"
  ... 
/>

ASP.NET Server Control

<elj:EditLiveXML 
  ...
  AddJar = "MyApplet.jar"
  LoadClass = "NewApplet"
  ... 
/>

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.