Index | OAT homepage | OpenLink Software

dialog.js

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:

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-2009 OpenLink Software