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

This method displays the EditLive! instance as a child of the specified control.     

AutoSubmit must be turned off in order to use showInElement. These two features are not compatible.

Syntax

JavaScript
editliveInstance.showInElement(parentID);

Parameters

parentID

A string specifying the ID of the parent element to insert the editor into.

JavaScript
<div id="parentElement"></div>
 
<script type="text/javascript">
       var editlive_js;
       editlive_js = new EditLiveJava("ELApplet1","700","400");
       ...
       editlive_js.showInElement("parentElement"); 
</script>

Remarks

This property is used as a replacement to show. This method is not to be used when invoking the editor via the addEditableSection Method.

Before this method is called, all the required properties of an EditLive! instance object must be set.

This method works better than show() in AJAX environments.

  • No labels