OnGetFilePath
Description
Fired after the ShowFileDialog methed finished.
| ActiveX Edition | Plug-in Edition | Mac Edition |
|---|---|---|
| Since V8.0 | Since V8.0 | Since V8.0 |
Syntax
Object_OnGetFilePath(Boolean bSave, Long Count, Long Index, String Path, String Name)
Parameters
Boolean bSave: True -- show save file dialog, False -- show open file dialog.
Long Count: The selected file count. 0 means none. If the ShowFileDialog() method failed or quitted,this parameter equals 0 too.
Long Index: The current selected file index. The index is 0-based. -1 means no file selected.
String Path: The parent path of current selected file, not include "\\". If the ShowFileDialog() method failed, return InitialDir initiated in ShowFileDialog method.
String Name: The Current selected file name.
Remarks
None.
See Also
ShowFileFialog method
Sample
//Bind event for plugin
< embed style='display: inline' id='mainDynamicWebcamnotIE' type='Application/DynamicWebcam-Plugin'
OnGetFilePath = 'DynamicWebcam_OnGetFilePath' pluginspage='DynamicWebcam/DynamicWebcam.xpi'> </embed>
//Bind event for IE
Webcam.attachEvent('OnGetFilePath', DynamicWebcam_OnGetFilePath);
<script type="text/javascript" language="javascript">
function DynamicWebcam_OnGetFilePath(bSave, count, index, path, name) {
alert("bSave:" + bSave);
alert("count:" + count);
alert("index:" + index);
alert("path:" + path);
alert("name:" + name);
}
</script>
Copyright © 2012 Dynamsoft Corporation.All Rights Reserved.
