Chris Moltisanti wrote:
Hi,
Im am going write a file to the users hard disk using Java, but I want
to be able to let the user select what directory they would like to
save the file to.
Is it possible to use javascript to open a search dialog where the user
will specify the directory?
AFAIK, not in a normal security environment; the closest you can get is
probably with the <input type="file"> dialog, which however does not
select a directory, but a file.
If you're in a secure environment, then check your browser extended
capabilities; for instance, in IE scripting an ActiveX object should be
all right, and in Mozilla I'm pretty sure that the framework should
offer some appropriate dialogs.
If you're to write a file in Java, then you can also probably do it in Java.