SKHtmlDialog Object



 
The SKHtmlDialog object represents a SiteKiosk dialog.


Members Table

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