invoke the Open file dialog box in DHTML 
Author Message
 invoke the Open file dialog box in DHTML

Hi Jim_w and Joey K.
I am trying to do exactly what Joey wanted to do, but can't find the
attached file where you show how to instantiate comdlg32.ocx in html.
Could you point me to the file, please.

Thanks,
AC

*** Sent via Developersdex http://www.*-*-*.com/ ***
Don't just participate in USENET...get rewarded for it!



Tue, 02 Nov 2004 02:54:43 GMT  
 invoke the Open file dialog box in DHTML
hi Anya,

Try this:

--- <snip> ---
Set oCD = WScript.CreateObject("MSComDlg.CommonDialog")

 ' set the dialog's titlebar caption...
 oCD.DialogTitle = "Select the file you want to open"
 oCD.MaxFileSize = 260
 oCD.ShowOpen

 MsgBox(oCD.FileName)
--- </snip> ---

cheers, jw


Quote:

> Hi Jim_w and Joey K.
> I am trying to do exactly what Joey wanted to do, but can't find the
> attached file where you show how to instantiate comdlg32.ocx in html.
> Could you point me to the file, please.

> Thanks,
> AC

> *** Sent via Developersdex http://www.developersdex.com ***
> Don't just participate in USENET...get rewarded for it!



Tue, 02 Nov 2004 04:54:39 GMT  
 invoke the Open file dialog box in DHTML
uh-oh.  I missed that part about this being in html.

Just erase the "WScript." from in front of "CreateObject", and the above
should work.

Can't think of an appropriate epigram here, something like "read the
problem, stupid".  jw



Tue, 02 Nov 2004 05:46:52 GMT  
 
 [ 3 post ] 

 Relevant Pages 

1. invoke the Open file dialog box in DHTML

2. Open File Dialog in DHTML

3. Open File Dialog in DHTML

4. Open file dialog box and upload file

5. Script to invoke the IE Edit - Find(on this page) dialog box

6. Invoking the FIND Dialog box in IE..

7. File Open Dialog box from CmnDlg32.dll?

8. WSH and "Open File" dialog box

9. Open Multiselect Open dialog box

10. Open File Dialog Box

11. Sample Code to use File Open dialog box

12. File Open dialog box

 

 
Powered by phpBB® Forum Software