EditLive! 9 Documentation : closeOnFocusLost Method

This property controls whether or not the active Inline Editing section is "closed" (replaced with a DIV) when focus moves out of the editor (e.g. if the user clicks on a text box). This property only applies to Inline Editing. 

Syntax

JavaScript
editliveInstance.setCloseOnFocusLost(bInCloseOnFocusLost);
ASP.NET - EditLiveJava Tag
prefix:EditLiveJava CloseOnFocusLost = bInCloseOnFocusLost

Parameters

bInCloseOnFocusLost

A boolean value indicating whether or not Inline Editing sections are closed once they lose input focus.

This value defaults to false.

Examples

The following example demonstrates how to cause Inline Editing sections to automatically close when focus moves to another element.

JavaScript
var editlive_js;
editlive_js = new EditLiveJava("ELApplet1","700","400"); 
...
editlive_js.setCloseOnFocusLost(true); 

Remarks

This can be used in Javascript as either a load-time or run-time property.