Did you see this one? There's code using an ActiveX control here (probably only works in IE):
Main Topics
Browse All TopicsI think I know the answer to this, which is no, but I need to ask anyways.
I need a javascript folder browser for a web page. I don't want the input type="file", because I want to select a folder on the server. I've tried a few items I've found on the net, none work. If this can be done without javascript, cool.
I know there are a ton of security issues involved with this, but this will be a web site behind the firewall so it should be ok.
Thanks.
This Question has been solved and asker verified All Experts Exchange premium technology solutions are available to subscription members.
Experts Exchange has been collecting answers to technology questions since 1996…3 million and counting! If you have a question, chances are we already have your answer.
If you can't find the exact answer you're looking for, ask our exclusive community of 50,000 experts. You’ll get a personalized answer from a trusted professional.
Thousands of free tech tips, tricks, how-to’s and tutorials are available in our peer reviewed articles section. See for yourself how smart our experts are, no login required.
Access the answers to your technology questions today.
30-day free trial. Register in 60 seconds.
Members of the expert community talk about why the experience at Experts Exchange is different than what you will find anywhere else.

Try it out and discover for yourself.
30-day free trial. Register in 60 seconds.
Join the community of experts here and help other tech pros by answering question in your area of expertise. You can earn FREE access to all Experts Exchange's premium features and resources.
>>I'm back to the idea this just can't be done.
Of course it can be done. The client tells the server to fetch a list of folders (from the server). Straightforward.
Now, if you want a list of folders on the CLIENT, that is another matter. The FileSystemObject can be used, but it brings up ActiveX warnings, or isn't allowed to run at all.
Still, the FileSystemObject on the SERVER works like a charm.
oops, am I missing something here? Javascript is a CLIENT-ONLY language -- it only affects the display in the users browser. Any file structure on a server is out of bounds to a client language. You need a server language like PHP, ASP or in your case, what you really want is an FTP program -- they are designed from the get-go to show tree structures on the server. It is impossible with just plain javascript.
Whatever you can do in PHP, I can do in javascript. Well, you could, too ;-)
I'm learning PHP as we type, but I'm not ready to convert anything just yet.
I made the leap from VBscript to javascript, and found I could write JS on the server as well as on the client. Being naturally lazy, I never learned another way.
PHP is well worth learning, probably the most intuitive server language there is.
I've never heard of anyone using JS on servers. When I and others make the client-only comment on EE, realize we need to make a clear distinction, because many people think that javascript in a browser window can make changes on the server, or at least act like a form and interact with a server.
It is important to make the distinction to them, so I will continue to say what I did here -- hope you can accept that.
ME? I could care. But I know the truth - javascript runs on the server.
Here at EE, I strive to make the distinction using the words "client" and "server".
We both know that what happens on the client, stays on the client - unless Ajax is involved. Here again, there is a separation, but it is somewhat blurred.
Like if you stare at "Web 1.0" long enough, you will eventually see "Web 2.0" ;-)
Sorry for the long wait on replying.
I went with a different route. I used an ASP.NET TreeView and then loaded that view with the folder names of the drives I wanted to map. You don't get the nifty 'create folder' option like you do in a folder browser control, but it does work for my needs.
Thanks to all who responded.
Business Accounts
Answer for Membership
by: WaldaIncPosted on 2008-08-11 at 16:03:57ID: 22208985
Let me clarify a bit more.
I just need to get a folder name. The stuff I want to do once I get that folder name can be done my me impersonating the admin user.
Again, I know this is a security issue, but if it can be done that would be great.