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

This property is used to set the current user's name. This username is appended to all changes made when the user edits the contents of EditLive! when Track Changes is enabled. For more information on Track Changes see the Getting Started With Track Changes article in the Developer Guide section of this SDK. 

Syntax

Visual Basic Script
object.Username = strUserName
ASP.NET
prefix:EditLiveJava UserName = strUserName
JavaScript
editliveInstance.setUsername(strUserName);

Parameters

strUserName

A string specifying the name for the current user of EditLive!.

Examples

The following code would set the username appended to all track changes as 'Ephox User'.

VBScript
editlive1.Username = "Ephox User"
ASP.NET Server Control
<elj:EditLiveJava
   ...
   UserName="Ephox User"
   ...
/>
JavaScript
editlive_js.setUsername("Ephox User");

Remarks

If two users enter the same name (e.g. "John Smith"), the changes made by these two separate users will render as if the changes were made by the same user. In order for each user to have their changes uniquely tracked and rendered, each user will need to enter a unique username.

See Also

  • No labels