ASP.NET 3.5 and above only
Obout.Ajax.UI Controls - HTML Editor - Client side
Obout.Ajax.UI.HTMLEditor.Popups.OkCancelPopup class
Inheritance Hierarchy
It is a client-side representation of the server-side
Obout.Ajax.UI.HTMLEditor.Popups.OkCancelPopup
class.
Base class for all popups in Obout.Ajax.UI.HTMLEditor.Popups namespace that have "OK" and "Cancel" buttons in the bottom.
Note |
To get property values for client API properties, you must call property accessor method that is named with the get_ prefix. For example, to get a value for a property such as id, you call the get_id method:
|
| var _id = popupObject.get_id(); |
Properties
| Name |
Description |
additionalCss
|
string. Gets comma separated paths of additional CSS files for this popup.
(Inherited from Popup.)
|
attached
|
boolean. Gets a value indicating whether the popup is 'attached' to a button called this popup.
(Inherited from Popup.)
|
autoClose
|
boolean. Gets a value indicating whether the popup is closed on click outside it.
(Inherited from Popup.)
Always false.
|
autoDimensions
|
boolean. Gets a value indicating whether the size of the popup is determining automatically.
(Inherited from Popup.)
Always true.
|
cssPath
|
string. Gets the main style file path.
(Inherited from Popup.)
|
designPanel
|
object. Gets the
DesignPanel object
if the popup is used in context of EditPanel and in Design mode, otherwise - null.
(Inherited from Popup.)
|
editPanel
|
object. Gets the
EditPanel object
if the popup is used in context of EditPanel, otherwise - null.
(Inherited from Popup.)
|
element
|
string. Gets the DOM element that the current Control instance is associated with.
(Inherited from Sys.UI.Control.)
|
id
|
string. Gets the identifier for the current Control object. The default is the id value of the associated Sys.UI.DomElement object.
(Inherited from Sys.UI.Control.)
|
initialContent
|
string. Gets the popup's HTML content.
(Inherited from Popup.)
|
popupHolder
|
object. Gets the associated Popup Holder object.
(Inherited from Popup.)
|
position
|
object. Gets or sets the coordinates of the popup position.
(Inherited from Popup.)
The position object has the following fields:
- left - left position in pixels;
- top - top position in pixels.
Example:
var position = popup.get_position();
// move it 100px to right down
popup.set_position({ left: (position.left + 100), top: (position.top + 100) });
|
Methods
| Name |
Description |
cancel(contentWindow)
|
This method is called on popup canceled.
(Inherited from Popup.)
contentWindow of the popup's iframe is passed as parameter.
This method can be overridden in the derived class.
Example from the Obout.Ajax.UI.HTMLEditor.Popups.GalleryManager class code:
cancel: function(contentWindow) {
Obout.Ajax.UI.HTMLEditor.Popups.GalleryManager.callBaseMethod
(this, "cancel", [contentWindow]);
this._removeEvents();
},
Note |
| Don't call this method directly. |
|
cancelCheck(contentWindow)
|
This method is called before the popup canceled.
(Inherited from Popup.)
contentWindow of the popup's iframe is passed as parameter.
If this method returns true, the popup will be closed and cancel method will be called.
Otherwise it will not be closed. By default it returns true.
This method can be overridden in the derived class.
Example:
cancelCheck: function(contentWindow) {
var retval =
CustomPopups.MyPopup.callBaseMethod
(this, "cancelCheck", [contentWindow]);
if (retval) {
retval = this._myCheckCancel();
}
return retval;
},
Note |
| Don't call this method directly. |
|
getDocument()
|
Gets the document element of the popup's iframe.
(Inherited from Popup.)
|
moveToCenter()
|
Moves the popup to the center of the visible area of the document.
(Inherited from Popup.)
|
ok(contentWindow)
|
This method is called on popup accepted ("OK" button clicked).
contentWindow of the popup's iframe is passed as parameter.
This method can be overridden in the derived class.
Example from the Obout.Ajax.UI.HTMLEditor.Popups.GalleryManager class code:
ok: function(contentWindow) {
Obout.Ajax.UI.HTMLEditor.Popups.GalleryManager.callBaseMethod
(this, "ok", [contentWindow]);
this._removeEvents();
},
Note |
| Don't call this method directly. |
|
okCheck(contentWindow)
|
This method is called before the popup accepted ("OK" button clicked).
contentWindow of the popup's iframe is passed as parameter.
If this method returns true, the popup will be closed and ok method will be called.
Otherwise it will not be closed. By default it returns true.
This method can be overridden in the derived class.
Example from the Obout.Ajax.UI.HTMLEditor.Popups.LinkProperties class code:
okCheck: function(contentWindow) {
var urlField = contentWindow.popupMediator.getField("url");
if (urlField != null) {
var url = urlField.value;
if (url == "" || (url.length >= 3 &&
url.substr(url.length - 3, 3) == "://")) {
contentWindow.alert(this.get_emptyUrlMessage());
contentWindow.setTimeout(function() {
try { urlField.focus(); } catch (e) { }
}, 0);
return false;
}
return true;
}
return false;
},
Note |
| Don't call this method directly. |
|
preOpen(contentWindow)
|
This method is called before popup is opened.
(Inherited from Popup.)
contentWindow of the popup's iframe is passed as parameter.
This method can be overridden in the derived class.
Example:
preOpen: function(contentWindow) {
this._preparePopup(contentWindow);
},
Note |
| Don't call this method directly. |
|
Events
obout.com
Obout.Ajax.UI controls
TreeView - 43
HTML Editor - 274
File Upload - 19
Color Picker - 17
Spell Checker - 16
Poll - 26
Captcha - 15
File Manager - 8