Name |
Return Value |
Description |
SK.App.Popup( ) |
|
Constructor |
setTitle( title ) |
this |
Sets a title to the popup window |
close( ) |
this |
Closes the window |
resize( width, height ) |
this |
Resizes the popup to the given dimensions. |
createButton({ |
DOM element which can be injected on a desired place in the document. |
Creates a standard WebForce system page button. |
confirm( |
|
Creates a confirmation dialog with OK and Cancel buttons. The callback_ok is executed when OK is clicked. The callback_cancel is executed when Cancel is clicked. |
notice( |
|
Creates a notification dialog. The callback_ok is executed when OK is clicked. |
syncEncoding( ) |
|
Gets the encoding from the opener window and sets it in the popup |
Examples
Creating a [Close] button and injecting it into a placeholder with buttons.
<script type="text/javascript"> |
Resizing the popup and setting a new title.
<script type="text/javascript"> |
Displaying a confirmation box.
<script type="text/javascript"> |