OpenFileDialog Method
The OpenFileDialog method displays an 'open file' dialog.
Syntax
[filename=] SiteKiosk.SiteKioskUI.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
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 top