setCookie Property

Description

This property sets the cookie that Ephox EditLive! for Java is to use when active. 

Syntax

JavaScript object.setCookie(strCookie)

Parameters

strCookie Required.  A string containing the value that EditLive! for Java is to use as a cookie.

Example

The following code creates an instance of EditLive! for Java and sets it to use the string document.cookie as the cookie when active. 

var editlivejava1;
editlivejava1 = new EditLiveJava("ELJApplet1","600","400");
editlivejava1.setCookie("document.cookie");

Remarks

The value used to set the setCookie property must be valid JavaScipt.  It is recommended that the value of "document.cookie" be used.

See Also