Closed Bug 199189 Opened 21 years ago Closed 21 years ago

nothing happens when I press submit

Categories

(Core :: DOM: Core & HTML, defect)

x86
All
defect
Not set
normal

Tracking

()

VERIFIED DUPLICATE of bug 192170

People

(Reporter: wigren, Assigned: john)

References

()

Details

(Keywords: regression)

User-Agent:       Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.3) Gecko/20030323
Build Identifier: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.3) Gecko/20030323

Nothing happens when I press the submit-button. It just ignores it.  It works
fine in Konqueror and IE. I haven't tested with Opera.

Reproducible: Always

Steps to Reproduce:
1. Fill in anything into the textfields
2. Press the [->] button
Actual Results:  
Nothing at all

Expected Results:  
It should had taken me to another page saying "Ni har angivit felaktigt
användarid eller lösenord." which means "You have given a wrong userid or
password." ;)
Works in ns7.02, where the form manager dialog appears, asking if it shall
remember the values. The error page reporter mention appears after this.

Similar bugs of late:
bug 183516, bug 199111, bug 199158
Confirming bug with Mozilla trunk binary 2003032308 on WinNT.
Not a JS Engine problem. Reassigning to Form Submission and jkeiser.

The following is a reduced testcase. Save it locally and try it out.
In IE6 the submission takes place, so you get taken to another page
saying, "Ni har angivit felaktigt användarid eller lösenord"
("You have given a wrong userid or password.") as described above.

In Mozilla nothing happens; no errors occur in the JavaScript Console.
The bug seems to be caused by the use of |type="image"| for the submit
button. If I change to |type="button"|, then Mozilla behaves differently.


<base href="http://flextor.lernia.se/loggain/">
<html><head><title>Testcase: bug 199189</title></head>

<script>
function loggain(form)
{
  form.method="post";
  form.action="../loggain_kontroll/sys_loggain_kontroll.asp?parLoggain=True";
  form.submit();		
}
</script>

<body>
<form onsubmit="javascript:return false;"><br>

  Username:<br>
  <input type="text" value="xxx"><br>

  Password:<br>
  <input type="password" value="yyy">&nbsp;&nbsp;

  <input type="image" src="sok_knapp.gif"
         onclick="javascript:loggain(this.form)">

</form>
</body></html>
Assignee: rogerl → jkeiser
Status: UNCONFIRMED → NEW
Component: JavaScript Engine → Form Submission
Ever confirmed: true
QA Contact: pschwartau → vladimire
OS: Linux ---> All
OS: Linux → All
this broke between linux trunk 2002112905 and 2002113022, indicating bug 138597
Keywords: regression
> indicating bug 138597

Andrew: is there a typo? I don't see the relation -
indeed.  should have said "bug 138957"
cc'ing Alex -
*** Bug 199207 has been marked as a duplicate of this bug. ***

*** This bug has been marked as a duplicate of 192170 ***
Status: NEW → RESOLVED
Closed: 21 years ago
Resolution: --- → DUPLICATE
Verified Duplicate - <form onsubmit="javascript:return false;">
Status: RESOLVED → VERIFIED
Component: HTML: Form Submission → DOM: Core & HTML
You need to log in before you can comment on or make changes to this bug.