OpenFileDialog Method



 
The OpenFileDialog method displays an 'open file' dialog.


Syntax

    [filename=] SiteCafe.UserInterface.CommonDialogs.
                OpenFileDialog(parentwin, filter, dir)
Parameters
    parentwin Handle to the parent window.
    filter String that specifies the file filter.
    dir String that specifies the initial directory.
Return Value
    Returns a String that contains the absolute path of the selected file.
Remarks
    None.
Examples
    The following example displays a 'open file' dialog and shows the selected filename in an alert window.

    <SCRIPT TYPE="text/javascript">
    window.external.InitScriptInterface();
    dialogObj = SiteCafe.UserInterface.CommonDialogs;
    alert(dialogObj.OpenFileDialog(0, "*.exe", "c:/dir"));
    </SCRIPT>
    

Applies to
    SiteKiosk v6.2 (and later versions).

Back to top