Index | OAT homepage | OpenLink Software

OATDOCdialog

dialog.js

Simple wrapper for OK/Cancel dialog, that can contain any data.

Objects

OAT.Dialog(title, contentDiv, optObj)

Creates a dialog window with title of title , puts contentDiv into it. Various options specify its appearance and behavior:

auto

auto

Methods

OAT.Dialog::show()


Shows the dialog.

OAT.Dialog::hide()


Hides the dialog.

Properties

OAT.Dialog::ok


Callback to be performed when user clicks 'OK' button.

OAT.Dialog::cancel


Callback to be performed when user clicks 'Cancel' button.

Example

var d = new OAT.Dialog("dialog", div, {modal:1, buttons:1});
d.show();


Copyright (C) 2005-2008 OpenLink Software