onLoadDframe function

The onLoadDFrame function is a function that can be stored in pages inserted in DFrames.

It will be launched  - if exists - each time the page is loaded in a DFrame.

Example

function onLoadDFrame() {

if (thisDFrame.getEditMode()) {

                   thisDFrame.setTitle('Document')

       } else {

                   thisDFrame.setTitle('Form')        

       }

}

Demo

file: onLoadDframe.html

Run the example
See the source code

Parameters

This function does not accept parameters.

Return value

no return value

Usage

This function is useful to custom some features of the DFrame receiving the page when those features depends on the content of the page.

Most common dFrameAPI methods used in this function are

useBarLayer

useContextMenu

show (Bars and Buttons of the DFrame containing the page) / setInactive (for Buttons)

setTitle