SaveFileDialog Method



 
The SaveFileDialog method displays a 'save file' dialog.


Syntax

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

    <SCRIPT TYPE="text/javascript">
    window.external.InitScriptInterface();
    dialogObj = SiteKiosk.SiteKioskUI.CommonDialogs;
    alert(dialogObj.SaveFileDialog(0, "*.txt", "c:/dir", "filename.txt"));
    </SCRIPT>
    

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

Back to top