# SKHtmlDialog Object The SKHtmlDialog object represents a SiteKiosk dialog. Members Table The following table lists the members provided by the SKHtmlDialog object.
Members
Properties | Description
Border | If the dialog has a border.
ClientHeight | Height of the client area.
ClientLeft | Horizontal position of the client area.
ClientTop | Vertical position of the client area.
ClientWidth | Width of the client area.
Closable | If the dialog can be closed.
CloseOnInput | If the dialog will close on keyboard or mouse input.
DialogID | Dialog ID.
DragData | Name of files dragged into the browser window.
ExStyles | Extended window styles of the dialog.
Foreground | If the dialog is in the foreground.
Handle | Handle of the dialog window.
Height | Height of the dialog.
Icon | Icon of the dialog.
IsWindow | If the dialog is a window.
Left | Horizontal position of the dialog.
Maximized | If the dialog is maximized.
Menu | Menu of the dialog.
MinHeight | Minimum height.
Minimized | If the dialog is minimized.
MinWidth | Minimum width.
Parent | Parent window of the dialog.
PreventInput | If input is allowed.
Region | Current region.
ScrollBars | If the dialog has scrollbars.
Styles | Window styles of the dialog.
Sysmenu | If the dialog has a close button.
Title | If the dialog has a title bar.
Top | Vertical position of the dialog.
TopMostWindow | If the dialog is to be shown on top of other windows.
Transparency | Transpareny of the dialog window.
Type | Type of the dialog.
URL | Location of the dialog HTML page.
Visible | Visibility of the dialog.
Width | Width of the dialog.
Methods | Description
AttachDispatch | Attaches an object to the dialog.
CenterWindow | Centers the dialog on the screen.
CloseDialog | Closes the dialog.
DrawMenuBar | Draws the menu bar.
FlashWindow | Flashes the dialog window.
LoadDefaultSettings | Loads a dialog specified in a browser skin file.
Maximize | Maximizes the dialog.
Minimize | Minimizes the dialog.
Restore | Restores the dialog.
SetPosition | Sets the position and size of the dialog.
ShowDialog | Shows the dialog.
ShowModal | Shows the dialog modal.
Events | Description
OnClose | Fires when the dialog is closed.
OnCommand | Fires when a menu entry has been clicked.
Remarks This object is returned by the SiteKioskUI.CreateHTMLDialog, SiteKioskConfig.CreateHTMLDialog or UserInterface.CreateHTMLDialog method. Use the SKHtmlDialog object to handle the new dialog window. The dialog itself must be realized by the HTML page shown in the window. Use the SKResize ActiveX Control for resizing functionality. Note that you can access the above properties and methods from within the opened dialog as well. Use Dialog for that instead of SKHtmlDialog, e.g. Dialog.CloseDialog(). Note that the path of a file using SiteKiosk objects must be allowed in the SiteKiosk configuration (Security -> Access -> URL's With Script Permission) if it is not a browser skin file. Examples The following example provides creating various dialogues.
    <html>
    <head>
    <SCRIPT TYPE="text/javascript">
    window.external.InitScriptInterface();
    function showdialog()
    {
       mydialog = SiteKiosk.SiteKioskUI.CreateHTMLDialog();
       mydialog.CloseOnInput = false;
       mydialog.PreventInput = false;
       mydialog.Border = dborder.checked;
       mydialog.ScrollBars = dscrollbars.checked;
       mydialog.Sysmenu = dsysmenu.checked;
       mydialog.Title = dtitle.checked;
       mydialog.URL = durl.value;
       if ((dwidth.value > 0) && (dwidth.value <= 1000) &&
           (dheight.value > 0) && (dheight.value <= 1000))
       {
          mydialog.Width = dwidth.value;
          mydialog.Height = dheight.value;
          mydialog.ShowDialog();
       } else alert("Please enter a value between 0 and 1000");
    }
    </SCRIPT>
    </head>
    <body>
    <table border="0" bgcolor="#ebebeb" width="600" cellspacing="5"
    cellpadding="5" style="font-family:verdana;font-size:8pt;"
    align="center">
    <tr><td bgcolor="f8f8f8">
    Click the link to create a dialog with the specified properties.
    </td></tr>
    <tr><td style="font-family:verdana;font-size:8pt;">
    <pre>
    <input type="checkbox" name="dborder" checked> Border
    <input type="checkbox" name="dscrollbars" checked> Scrollbars
    <input type="checkbox" name="dsysmenu" checked> Menu
    <input type="checkbox" name="dtitle" checked> Titlebar
    <br>
    &nbsp;URL
    &nbsp;<input type="text" name="durl" size="20"
    value="http://www.yahoo.com" style="height:20px;"
    onfocus="mymerk=value;" onblur="if (value == '') value=mymerk;">
    <br>
    &nbsp;Width in pixel
    &nbsp;<input type="text" name="dwidth" size="20" value="500"
    maxlength="4" style="height:20px;" onfocus="mymerk=value;"
    onblur="if (value == '') value = mymerk;">
    <br>
    &nbsp;Height in pixel
    &nbsp;<input type="text" name="dheight" size="20" value="500"
    maxlength="4" style="height:20px;" onfocus="mymerk=value;"
    onblur="if (value == '') value = mymerk;">
    </pre>
    </td></tr>
    </table>
    <br><br>
    <div align="center">
    <a href="javascript:showdialog()">
    Show dialog
    </a>
    </div>
    </body>
    </html>
Applies to SiteKiosk v5.0 (and later versions). Back to top