## DFrame: getEditMode

Return true if there is at least one form in the page contained by the DFrame, false else.

Example

function setBarLayer() {

if (dFrame.getEditMode()) thisDFrame.useBarLayer(thisDFrame.editBarLayer)

else thisDFrame.useBarLayer(thisDFrame.readBarLayer)

}

Demo

file: onLoadDframe.html

Run the example
See the source code

### Syntax

DFrame.getEditMode()

### Parameters

no parameter

### Return value

boolean

### Usage

The return value of this method allows to modify the DFrame appearance and functionalities.

A form is found as a valid form if it has a method (POST) and an action.

If the inserted HTML page is built in a static mode (all HTML stuff as text) it is easy to know if there is a form or not and directly select the right appearance for the DFrame. The getEditMode method will mainly be used by developers building pages in a dynamic way (ASP, JSP, Domino etc…) where the whole content of the page is not known when it is built.