Page tree
Skip to end of metadata
Go to start of metadata

This property stipulates the name of the cookie to be used by Ephox EditLive!. Specifying a session's current cookie here allows EditLive! to retain the session information contained in this cookie. If the contents of EditLive! are sent to the server via a HTTP post, the contents of the cookie specified here are also passed. For more information on passing the contents of EditLive! to a server via HTTP post, see the Retrieving Content From EditLive! article. 

Syntax

Visual Basic Script
object.Cookie = strCookie
ASP.NET
prefix:EditLiveJava Cookie = strCookie
JavaScript
editliveInstance.setCookie(strCookie);

Parameters

strCookie

A string value indicating the name of the Cookie. The value should be equivalent to a JavaScript value, for example document.cookie.

Examples

The following code would set the Cookie property to document.cookie.

VBScript
elglobal.Cookie = "document.cookie"
ASP.NET Server Control
<elj:EditLiveJava
  ...
  Cookie = "document.cookie"
  ...
/>
JavaScript
editlivejs.setCookie(document.cookie);

Remarks

The value used to set the Cookie property should be valid JavaScript. It is recommended that the value of document.cookie is used.

The value passed to this function will be evaluated as JavaScript. Thus, using the value of document.cookie with this function will result in the cookie for the HTML page being used by EditLive!.

  • No labels