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)

x86
Windows XP
defect
Not set
normal

Tracking

()

VERIFIED INVALID

People

(Reporter: rotemliss, Unassigned)

Details

Attachments

(1 file)

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.
Attached file Testcase
The testcase.
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
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.
(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
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
Status: RESOLVED → VERIFIED
Component: DOM: HTML → DOM: Core & HTML
QA Contact: ian → general
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: