Closed
Bug 280761
Opened 20 years ago
Closed 20 years ago
onSubmit event doesn't fired when a form is submitted on the local computer
Categories
(Core :: DOM: Core & HTML, defect)
Tracking
()
VERIFIED
INVALID
People
(Reporter: rotemliss, Unassigned)
Details
Attachments
(1 file)
|
714 bytes,
text/html
|
Details |
User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.7.5) Gecko/20041107 Firefox/1.0
Build Identifier: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.7.5) Gecko/20041107 Firefox/1.0
When I use <form onSubmit=''>, it doesn't fired when I click the submit
button, or click a button does document.getElementById("submit").submit(). It
just doesn't work!
(By the way, there is a workaround – using onClick event of the submit button –
but what about submission by clicking Enter in one the form fields? It doesn't
handel this submission.)
Reproducible: Always
Steps to Reproduce:
1. Open the testcase I will upload soon.
2. Try to click the submit button. Click OK in the alert() message/s.
Actual Results:
There onClick event of the submit button is fired, and there is an alert()
message; now the form is submitted, with no other message.
Expected Results:
As in IE and Opera: the onClick event of the submit button is fired, and there
is an alert() message of it – but now the event onSubmit of the form is fired,
and shows another alert() message; now the form is not submitted, for there is
the expression "return false();" in the onSubmit event.| Reporter | ||
Comment 1•20 years ago
|
||
The testcase.
| Reporter | ||
Comment 2•20 years ago
|
||
Well, it happens only in file:/// protocol. The summary has been updated… You should download the testcase for seeing it.
Summary: onSubmit event doesn't fired when a form is submitted → onSubmit event doesn't fired when a form is submitted on file:/// protocol
Comment 3•20 years ago
|
||
Works fine here. Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.7.5) Gecko/20041107 Firefox/1.0 and Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.8a6) Gecko/20050111.
| Reporter | ||
Comment 4•20 years ago
|
||
(In reply to comment #3) > Works fine here. > Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.7.5) Gecko/20041107 Firefox/1.0 > and Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.8a6) Gecko/20050111. > And here: Mozilla/5.0 (Windows; U; Windows NT 5.1; he-IL; rv:1.7.5) Gecko/20041222 Did you download the file? By the way, it also doesn't work in my local server (IIS) - but only in Firefox, in Seamonkey it works fine in all the places. It seems to doesn't work in my local computer, not only in file:/// protocol.
Summary: onSubmit event doesn't fired when a form is submitted on file:/// protocol → onSubmit event doesn't fired when a form is submitted on the local computer
| Reporter | ||
Comment 5•20 years ago
|
||
It wasn't Mozilla; it didn't work for me, because of the extension Always Remember Password was installed. Marked Resolved Invalid.
Status: UNCONFIRMED → RESOLVED
Closed: 20 years ago
Resolution: --- → INVALID
| Reporter | ||
Updated•19 years ago
|
Status: RESOLVED → VERIFIED
You need to log in
before you can comment on or make changes to this bug.
Description
•