Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations John Tel on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Directory selection in Javascript

Status
Not open for further replies.

keyops

Programmer
Apr 8, 2004
1
GB
Hi

Just starting to get back in to js, can someone tell me how to open a dialog box which will allow the user to select a directory on the local machine?

I need to read this value (selected dir) back in to my controlling cgi script...

many thanks in advance

j
 

As far as I know, this cannot be done without the use of either an ActiveX control or Java applet.

The file input only lets you select file types, as far as I know... Although you could get the user to select a file in the directory they want to select, and you strip off the filename to get the directory name...

Hope this helps,
Dan
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top