Closed Bug 139798 Opened 23 years ago Closed 23 years ago

form submit with javascript action unable to submit

Categories

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

defect

Tracking

()

RESOLVED FIXED
mozilla1.0

People

(Reporter: Tony.Tovar, Assigned: john)

References

()

Details

(Keywords: topembed+, Whiteboard: [FIX][adt2])

Attachments

(1 file, 1 obsolete file)

Using build 2002-04-22(08) on WinNT Clicking the GO button (or simply typing a product search and pressing ENTER) has no effect. It works in IE. Tech evangelism?
To jkeiser.. The "action" is a javascript url that calls .submit() and I suspect that we ignore .submit() calls on a form that is "already submitting", which breaks in this case.
Assignee: Matti → jkeiser
Status: UNCONFIRMED → NEW
Component: Browser-General → Form Submission
Ever confirmed: true
OS: Windows NT → All
Hardware: PC → All
It has an effect for me ... strange, when I type "hi" and click "GO" it goes to a script called EMAILOPTIN, it doesn't search at all.
Linux 2002042210.
Oops, that was the wrong box. They have a really sneaky box at the bottom for you to enter your email that doesn't tell you what the box is for. I am seeing the problem on product search. This is ugly code. Maybe IE handles it by only disallowing multiple submits to http.
*** Bug 139840 has been marked as a duplicate of this bug. ***
Nominating. This is important, bz tells me there are two other bugs out there (I haven't see them) that have this problem. Any form which has javascript: as the action and modifies the ADT: if this The fix is known, and should be quick. Simply do not block other submits when the URL is javascript.
Keywords: nsbeta1
Target Milestone: --- → mozilla1.0
Attached patch Patch (obsolete) — Splinter Review
This fixes the problem by allowing submission to occur again during submit of javascript: URLs. I do not think this is a hack, though one thing that would be nice is if you could ask for info about a URI--i.e. find out if it is synchronous and find out if it is scriptable and if both are true, disable submit. This would work gracefully with future as-yet-undetermined URL types.
Alex, could you r=?
Status: NEW → ASSIGNED
Whiteboard: [FIX]
Comment on attachment 80922 [details] [diff] [review] Patch r= alexsavulov i bet the guy that put that page together tried to show everybody what nice tricks he can do with HTML and javascript. but anyway, he showed us a problem. so if i get it right in this case we submit only once right? now i start to think about some sick dude that might try to submit the same form twice(explicitly) using for example a js onsubmit handler or like here a js action. that sould be tested with IE to see if is possible. If yes, sooner or later someone will do it (or maybe not).
Attachment #80922 - Flags: review+
1.0 should only be set by nsbeta1+'er.
Target Milestone: mozilla1.0 → ---
Blocks: 132895
Note: this breaks Dell's Premier Support web site....
No longer blocks: 132895
Blocks: 132895
nsbeta1+
Keywords: nsbeta1nsbeta1+
Whiteboard: [FIX] → [FIX][adt2]
Priority: -- → P1
Target Milestone: --- → mozilla1.0
Comment on attachment 80922 [details] [diff] [review] Patch SR=attinasi As we discussed in IM, please change the comment to make it clear that submitting from JS is not really 'submitting', it is just executing some JS code.
Attachment #80922 - Flags: superreview+
Attached patch Patch v1.0.1Splinter Review
Final version (so that I have the right patch to go with when checking in to branch)
Attachment #80922 - Attachment is obsolete: true
Comment on attachment 81793 [details] [diff] [review] Patch v1.0.1 Carrying r/sr.
Attachment #81793 - Flags: superreview+
Attachment #81793 - Flags: review+
Fix checked in to trunk.
Status: ASSIGNED → RESOLVED
Closed: 23 years ago
Resolution: --- → FIXED
Is it too late to update the summary to something more technical? I'm the reporter and I'm open to any suggestions.
Keywords: adt1.0.0
Summary: coldwatercreek.com - product search doesn't work (incompatible javascript?) → form submit with javascript action unable to submit
This sounds like it is a rare use of "HTML and javascript." Do we know how often this occurs out in the wild? Does this happen on a high level, in any top sites?
In the week or so that we have had this bug, we have had at least four reports on it. One of the affected sites is Dell's support site, another is a banking site. The fix is very safe and simple.
adt1.0.0+ (on ADT's behalf) approval for checkin to the 1.0 brnach. Pls check this in after you receive a= from Drivers, then add the fixed1.0.0 keyword.
Keywords: adt1.0.0adt1.0.0+
Keywords: topembed+
did this one make it to the branch yet?
Refresh of a= for drivers; very low risk, high reward/visibility
Please check this in to the branch today!
fix checked into branch.
Keywords: fixed1.0.0
Component: HTML: Form Submission → DOM: Core & HTML
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: