Click to See Complete Forum and Search --> : FileDialog in javascript?


Jenny
10-14-2003, 05:09 PM
Hi everyone,

In my web application, it has one input box and one button. My requirement is when user click the button, it should open the file dialog which explores the local machine's directory, and when user pick the directory from the file dialog, the directory location should show in the input box. eg. user select the temp folder which located in C driver, so the string c:\temp should show in input box.

I know use <input type=file>, but it only pick up the file location, this is not what I wanted.

Any help will be appreciated.

Jenny

Khalid Ali
10-14-2003, 05:12 PM
file location of course has the directry structure as well,just parse the value in the file element to suite your requirement,

Jenny
10-14-2003, 05:36 PM
thanks,
Do you mean I can use the <input type="file">, then parse the result string showed in the input box? But the problem is if I select the folder, the filedialog box won't close. Could you explain it more detail?

Jenny