Closed
Bug 311105
Opened 20 years ago
Closed 20 years ago
Form button calls 'submit()' in 'onclick' AFTER disabling itself. Nothing happens
Categories
(Firefox :: General, defect)
Firefox
General
Tracking
()
RESOLVED
DUPLICATE
of bug 277890
People
(Reporter: codelogic, Unassigned)
Details
Attachments
(1 file)
|
220 bytes,
text/html
|
Details |
User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.7.10) Gecko/20050730 Firefox/1.0.6 (Debian package 1.0.6-2)
Build Identifier: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.7.10) Gecko/20050730 Firefox/1.0.6 (Debian package 1.0.6-2)
I wasn't able to host it anywhere, but here is the code
<html>
<body>
<form method="post" action="TestPage.php3" name="TestForm">
<button onclick="this.setAttribute('DISABLED', 1);document.TestForm.submit()"
ID="FinishButton" VALUE="0">Finish</BUTTON>
</form>
</body>
</html>
Reproducible: Always
Steps to Reproduce:
1. Add a button to a form
2. In the 'onclick' handler, first disable it with
'this.setAttribute('DISABLED', 1)'
3. Then submit the form with 'document.TestForm.submit()'
Actual Results:
Nothing happens (used to work on Firefox 1.0.6)
Expected Results:
Form gets submitted
I tried this on Firefox 1.6a1 (linux) and Firefox 1.5 Beta 1 (windows)
Attachment #198488 -
Attachment description: Test HTML → Test Page
Comment 2•20 years ago
|
||
Dupe of bug 309348?
Comment 3•20 years ago
|
||
Ah, found the real dupe.
*** This bug has been marked as a duplicate of 277890 ***
Status: UNCONFIRMED → RESOLVED
Closed: 20 years ago
Resolution: --- → DUPLICATE
(In reply to comment #3)
> Ah, found the real dupe.
>
> *** This bug has been marked as a duplicate of 277890 ***
Almost exactly the same, except that, in this case, the button is disabled
before submitting.
You need to log in
before you can comment on or make changes to this bug.
Description
•