Michael Pemberton wrote:
(snip)
> Also, does anyone know how to get a file prompt to open. The file input
> tag has no way that I can see of forcing the dialog to appear.
>
> --
> Michael Pemberton
> mp...@ph...
> ICQ: 12107010
(snip)
Just in IE:
Suppose an HTML file like this:
<form name=form1 action=...>
...
<input type=file name=upload1 value="thisfile_upload.zip"><!-- Note: default
values ignored in many navigators -->
...
</form>
The code will look like:
...
// This opens the file-upload dialog box in IE
document.form1.upload1.click()
...
This doesn't work in NS, but I have made a workaround that consists on telling
the user that it's a feature needed to double-check that the images to send are
the right ones (hehe).
I hope this helps, 'cause there's no other way I have found to overcome the
problem. Other than this, sending dynamically-generated forms all over the wire
is ok with all the navigators I have tested so far (NS4.x+ and IE4.x+) and I use
them extensively in my project.
Raides J.
|