[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[CF-Scripting] Simulate click() in <input type="file">



Hello,

Does anyone know how to use JavaScript to simulate a click on the
"Browse..." button of a file upload form field?

In IE I can use something like document.myForm.myFile.click() which will
do the job and pop open the file browse window, but this doesn't work in
Firefox (no error, just doesn't do anything).

Any ideas?

Cheers,

Tim.

--
-------------------------------------------------------
Badpen Tech - CF and web-tech: http://tech.badpen.com/
-------------------------------------------------------
    RAWNET LTD - independent digital media agency
    "We are big, we are funny and we are clever!"
     New site launched at http://www.rawnet.com/
-------------------------------------------------------
This message may contain information which is legally
privileged and/or confidential.  If you are not the
intended recipient, you are hereby notified that any
unauthorised disclosure, copying, distribution or use
of this information is strictly prohibited. Such
notification notwithstanding, any comments, opinions,
information or conclusions expressed in this message
are those of the originator, not of rawnet limited,
unless otherwise explicitly and independently indicated
by an authorised representative of rawnet limited.
-------------------------------------------------------