s@rdalya

 

ModalDialog

Page history last edited by vozcelik 2 yrs ago


 

ModalDialog

(extends DynamicLayer)


Object summary

 

Creates a DHTML modal control that goes on top of (almost) everthing (except frames,iframes,flash objects,applets and combo boxes).

 

ModalDialog(elmBgLayer,elmDragLayer,elmContentLayer,elmCloseBtn)

 

parameters

elmBgLayer - Semi-transparent background layer.

elmDragLayer - The layer to drag.

elmContentLayer - show method will change this layer's innerHTML.

elmCloseBtn - (optional) When clicked on this element ModalDialog will be closed.

 

comments

Better examine the example page to have a better understanding. The object requires some CSS and some JS to be set to be able to work cross-browser.


ModalDialog.disableClose()

 

comments

Disables the close action of the ModalDialog.


ModalDialog.enableClose()

 

comments

Enables the close action of the ModalDialog.


ModalDialog.isCloseDisabled()

 

returns

true if close action is disabled, false otherwise.


ModalDialog.show(strHTML)

 

parameters

strHTML - The HTML to show in the elmContentLayer.

 

comments

Shows the ModalDialog.


ModalDialog.hide()

 

comments

Hides the ModalDialog.


See Also

 

None given


Usage Examples

 

Comments (0)

You don't have permission to comment on this page.