views:

41

answers:

1

Hello all,

I would like to create a folder selector for my application which will only run on Internet Explorer Browsers (IE6+).

I would like to get the full folder path a user wishes to use via a HTML browse button or similar and then pass this to my server side application which is written in PHP! This can not be done via JavaScript for security reasons so I am looking for any other alternative that will work.

I had implemented a solution using a Java Applet but this did not work out as it didn't work on IE6, plus the browser security is locked down where I am deploying this app, meaning I am unlikely to get away with an applet.

The current solution is getting the user to paste in the folder location into a textfiel, this isn't acceptable any more.

Any implementation advice welcome!

Thanks all

A: 

Hi,

If your app is IE only you can create a simple ActiveX Control with only one method:

 HRESULT BrowseForFolder([out] BSTR folderName);

ATL Wizard will give you major portion of code.

But I would consider using flash for this:

  1. It is more widely used then Java (I think so).

  2. ActiveX is strongly depends on browser's security options and more annoying to install.

  3. Your task is rather small, so it can be implemented without deep skills, if you not familiar with flash
Eugene
Will Flash be able to give you the full path and directory structure??
Abs
I'm not a flash coder, this is just guessing. But if flash can it, it would be the best way. Anyway you can always do it with ActiveX.
Eugene