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.
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.
object.AddJar =jarURL
object.LoadClass = loadClassName
prefix:ELXInstance addJar = jarURL
prefix:ELXInstance loadClass = loadClassName
prefix:EditLiveXML AddJar = jarURL
prefix:EditLiveXML LoadClass = loadClassName
addJar(jarURL, loadClassName);
The URL specified location of the jar file used to instantiate the modified version of EditLive! for XML.
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.
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");Copyright 2001-2005 Ephox Corporation. All Rights Reserved.