SKHtmlDialog Object

The SKHtmlDialog object represents a SiteKiosk dialog.

Members Table

    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.
    The following example provides creating various dialogues.

    <SCRIPT TYPE="text/javascript">
    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;
       } else alert("Please enter a value between 0 and 1000");
    <table border="0" bgcolor="#ebebeb" width="600" cellspacing="5"
    cellpadding="5" style="font-family:verdana;font-size:8pt;"
    <tr><td bgcolor="f8f8f8">
    Click the link to create a dialog with the specified properties.
    <tr><td style="font-family:verdana;font-size:8pt;">
    <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
    &nbsp;<input type="text" name="durl" size="20"
    value="" style="height:20px;"
    onfocus="mymerk=value;" onblur="if (value == '') value=mymerk;">
    &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;">
    &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;">
    <div align="center">
    <a href="javascript:showdialog()">
    Show dialog

Applies to
    SiteKiosk v5.0 (and later versions).

Back to top