Closed
Bug 115780
Opened 23 years ago
Closed 23 years ago
Form submission doesn't run onClick() of submit button
Categories
(Core :: DOM: Core & HTML, defect)
Core
DOM: Core & HTML
Tracking
()
VERIFIED
DUPLICATE
of bug 109463
People
(Reporter: jesup, Assigned: alexsavulov)
References
()
Details
2001121703 win32 daily
Type "gold" into search string, hit return. Note the "Please specify a query
error. Now go back and instead click on the submit (Search) button. Note a
zillion matches.
Also affects QVC and Bugzilla query pages (in slightly different ways).
tcpdump/ethereal should be able to show what's wrong with the form submission.
This is REALLY bad......
Reporter | ||
Comment 1•23 years ago
|
||
This is the URL it goes to if you hit return:
http://search.ebay.com/search/search.dll?MfcISAPICommand=GetResult&ht=1&ebaytag1=ebayreg&query=&query2=gold&search_option=1&exclude=&category0=&minPrice=&maxPrice=&ebaytag1code=0&st=&SortProperty=MetaEndSort
This is the URL it goes to if you hit the submit button:
http://search.ebay.com/search/search.dll?MfcISAPICommand=GetResult&ht=1&ebaytag1=ebayreg&query=gold&query2=gold&search_option=1&exclude=&category0=&minPrice=&maxPrice=&ebaytag1code=0&st=&SortProperty=MetaEndSort
Note query= in the first, and query=gold in the second. In both, query2=gold.
'query' is a hidden input; 'query2' is the visible one. The onsubmit JS is
supposed to process query2 and options and set query.
I know what is going on. NS4.x doesn't submit on return; it goes to the next
text widget. IE 5 submits, but it appears to find and run the onClick() for the
submit button. Lack of running the onClick(whichOption(this.form)) is what
causes this bug.
Changing subject to match known cause. OS->all
OS: Windows 95 → All
Hardware: PC → All
Summary: Hitting return in a text widget causes bad form submission → Form submission doesn't run onClick() of submit button
![]() |
||
Comment 2•23 years ago
|
||
Duplicate of "Submitting a form by pressing enter drops fields[form sub]"
Jesup, thanks for hunting this down!
*** This bug has been marked as a duplicate of 109463 ***
Status: NEW → RESOLVED
Closed: 23 years ago
Resolution: --- → DUPLICATE
Updated•6 years ago
|
Component: HTML: Form Submission → DOM: Core & HTML
You need to log in
before you can comment on or make changes to this bug.
Description
•