SiteKiosk Documentation
One Step Back

OpenFileDialog Method




The OpenFileDialog method displays an 'open file' dialog.


Syntax

    [filename=] SiteKiosk.SiteKioskUI.CommonDialogs.
                OpenFileDialog(parentwin, filter, dir)
Parameters
    parentwinHandle to the parent window.
    filterString that specifies the file filter.
    dirString 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 = SiteKiosk.SiteKioskUI.CommonDialogs;
    alert(dialogObj.OpenFileDialog(0, "*.exe", "c:/dir"));
    </SCRIPT>
    

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

Back to topVolver arriba

© 1997-2011 PROVISIO - Aventura, EEUU - Muenster, Alemania
Sitekiosk.es - Grupo24®, Madrid, España -