Closed
Bug 100800
Opened 23 years ago
Closed 23 years ago
Cannot submit form if submit() called before onload() is fired
Categories
(Core :: DOM: Core & HTML, defect)
Tracking
()
RESOLVED
WORKSFORME
People
(Reporter: ken, Assigned: jst)
References
Details
Attachments
(1 file)
(deleted),
text/html
|
Details |
From Bugzilla Helper:
User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:0.9.4) Gecko/20010913
BuildID: 2001091311
Thoe following scrip is broken in mozilla, but not in ns4, or ie.
<form name=sendForm action=foo.php>
<input type=hidden name=bar value=1
</form>
<script language=javascript>
document.sendForm.submit();
</script>
Reproducible: Always
Steps to Reproduce:
1. see above
2.
3.
Comment 1•23 years ago
|
||
DOM0. The JS runs before the form is created, so it can't be submitted. Moving
that call to submit() into the onload handler works wonders.
Assignee: rods → jst
Status: UNCONFIRMED → NEW
Component: Form Submission → DOM Level 0
Ever confirmed: true
QA Contact: vladimire → desale
Summary: Cannot submit form containing only hidden elements by javascript → Cannot submit form if submit() called before onload() is fired
Comment 2•23 years ago
|
||
If that's the problem, this will be fixed with bug 34297. Adding dependency.
Depends on: 34297
Comment 4•23 years ago
|
||
Comment 5•23 years ago
|
||
2001103113 Linux worksforme
Status: NEW → RESOLVED
Closed: 23 years ago
Resolution: --- → WORKSFORME
You need to log in
before you can comment on or make changes to this bug.
Description
•