Hi all,
well, when there is an unanswered question there is only one place i come to..
This time I wonder about the "attach file" link in gmail.
It is interesting since clicking this link opens a hidden browse dialog box.
Basically, IE does not lets you set a value for file input field, and also does not allows you to initiate an "onclick();" event on it. It is a security matter.
If you try to do it and submit a form, the focus will be automatically set on the file input until you PRESS YOURSELF the browse button and select the file yourself.
Gmail comes over it. It lets you initiate the browse dialog from another link and then submit the form.
How do they do it?
btw: is it possible to change the label on the brose button from "browse.." to something else?



Reply With Quote


Bookmarks