setSolution Method

Description

This method is used to apply a solution, created using the desktop Visual Designer, to an instance of EditLive! for XML.

Syntax

JavaScript

setSolution(strELSURL);

Parameters

strELSURL

A URL specifying the Web accessible location of the file for this solution. This file must be an .els solution file created using the desktop Visual Designer. This value can be either a relative or an absolute URL. Relative URLs are relative to the location of the page in which EditLive! for XML is embedded.

Examples

Example 16.29. setSolution Method Example Scripting

The following example demonstrates how to load a solution specified by the URL http://yourserver.com/solutions/yoursolution.els.

JavaScript

var editlivexml = New EditLiveXML("ELXApplet1","700","400");
editlivexml.setSolution("http://yourserver.com/solutions/yoursolution.els");

Remarks

Each view created in a solution is presented to a user via a tab on the interface.

See Also