Closed
Bug 297282
Opened 20 years ago
Closed 20 years ago
I am unable to open a "browse file" button using javascript code
Categories
(Core :: JavaScript Engine, defect)
Tracking
()
People
(Reporter: dbrouard, Unassigned)
References
()
Details
User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; es-AR; rv:1.7.8) Gecko/20050511 Firefox/1.0.4
Build Identifier: Mozilla/5.0 (Windows; U; Windows NT 5.1; es-AR; rv:1.7.8) Gecko/20050511 Firefox/1.0.4
I am unable to open a "browse file" button using javascript code, while "submit"
button works properly.
In the example page, I just code the "browse file" button. It's very simple
code; you click on the link "I will try to open the browse button" and that
executes a javascript function that get the button object using
"document.getElementById()" and calls the "click()" method of the button.
Nothing happens.
This example works if the button is a "submit" button as you can see if you
click on the other link "I will try to click the submit button".
The reference talks about that method:
http://www.devguru.com/Technologies/ecmascript/quickref/fileupload.html
Reproducible: Always
Steps to Reproduce:
1. Load de expample URL
2. Click on the link "I will try to open the browse button"
Actual Results:
Nothing happens
Expected Results:
open a browse file dialog window
Comment 1•20 years ago
|
||
*** This bug has been marked as a duplicate of 36619 ***
Status: UNCONFIRMED → RESOLVED
Closed: 20 years ago
Resolution: --- → DUPLICATE
You need to log in
before you can comment on or make changes to this bug.
Description
•