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

I am wondering if it is possible thru VBScript to invoke the Open file
dialog box similar to the GetOpenfilename method in VBA.

Here is what I would like to do: when a user click a button, this Open file
dialog box will popup (without actually opening up the file) and let the
user choose a file from a initial directory and initial type (ie. *.txt,
C:\my documents\subfolder), then put the path to this file in a text input
box.  This is very similar to the input type = "file" (fileUpload) property
in HTML, but I would like to control the initial directory and the initial
file type for them to search.

Any help will be appreciated.

Joey K



Tue, 20 Jul 2004 08:25:42 GMT  
 invoke the Open file dialog box in DHTML
I am wondering if it is possible thru vbscript to invoke
the Open file
dialog box similar to the GetOpenfilename method in VBA.

Here is what I would like to do: when a user click a
button, this Open file
dialog box will popup (without actually opening up the
file) and let the
user choose a file from a initial directory and initial
type (ie. *.txt,
C:\my documents\subfolder), then put the path to this file
in a text input
box.  This is very similar to the input type = "file"
(fileUpload) property
in HTML, but I would like to control the initial directory
and the initial
file type for them to search.

Any help will be appreciated.

Joey K



Tue, 20 Jul 2004 08:30:38 GMT  
 invoke the Open file dialog box in DHTML

Quote:

> I am wondering if it is possible thru vbscript to invoke the Open file
> dialog box similar to the GetOpenfilename method in VBA.

To use the file open (browse) dialog, there are a couple of free controls out
there that "wraps" the comctrl dialogs in an ocx object:

WSHShellExtend ActiveX control
http://www.borncity.de/WSHBazaar/WSHBazaar.htm

and

http://home.att.net/~wshvbs/index.htm
search down the page for a link to:
   "Using the system "Open" and "SaveAs" Common Dialogs... "

--
torgeir



Tue, 20 Jul 2004 08:43:29 GMT  
 invoke the Open file dialog box in DHTML
Is there a way that does not depends on third-party OCX file?  The HTML page
is host on a UNIX webserver.

Thanks,
Joey


Quote:

> > I am wondering if it is possible thru vbscript to invoke the Open file
> > dialog box similar to the GetOpenfilename method in VBA.

> To use the file open (browse) dialog, there are a couple of free controls
out
> there that "wraps" the comctrl dialogs in an ocx object:

> WSHShellExtend ActiveX control
> http://www.borncity.de/WSHBazaar/WSHBazaar.htm

> and

> http://home.att.net/~wshvbs/index.htm
> search down the page for a link to:
>    "Using the system "Open" and "SaveAs" Common Dialogs... "

> --
> torgeir



Tue, 20 Jul 2004 12:55:43 GMT  
 
 [ 4 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