Closed Bug 92948 Opened 23 years ago Closed 23 years ago

auto-submit of form does not work

Categories

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

x86
Windows 2000
defect
Not set
normal

Tracking

()

RESOLVED DUPLICATE of bug 100800

People

(Reporter: ecooper, Assigned: jst)

References

()

Details

From Bugzilla Helper:
User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:0.9.2+)
Gecko/20010731
BuildID:    2001073103

This is a form with a hidden submit control and javascript to submit it.
Upon going to this page, it should immediately submit itself and
display the output of the CGI.
My guess is that the submit() function does not work, at least in this
context.

Reproducible: Always
Steps to Reproduce:
Type https://bnyonline.com/retail_login_check.asp
into the browser

Actual Results:  blank page is shown

Expected Results:  page should immediately submit itself and display the output
of the CGI.
over to dom0....  the page has _terrible_ html, by the way.
Assignee: rogerl → jst
Component: Javascript Engine → DOM Level 0
QA Contact: pschwartau → desale
I agree, this page sucks to debug because of the pop-ups, pop-unders,
auto-bookmark, auto-homepage scripts are annoying as hell.

Reporter, if you can provide a simpler test case, it would help.  There are many
forms on this page, and all I see happening onload is that pop-up/under window
is launched.
maybe due to having a cookie, but when I view source on this page, all I get is
this (you can just copy it into an html file
and use it from there):

<script language="JavaScript">
<!-- Beginning of Script

function logon()
{
 document.forms[0].submit();
}

// End of Script -->
</SCRIPT>
<form METHOD="POST"
ACTION="https://bnyonline.com/scripts/cgiclnt.exe/CORE-Main%20Web/ND000_">
<input type=hidden name="EWF_SYS_0" value="61118042-ff0a-11d0-98df-006097b70359">
<input type=hidden name="EWF_FORM_NAME" value="aBegin">

<input TYPE=HIDDEN name="BANK ID" value="946">
<input TYPE=HIDDEN name="PRODUCT NAME" value="EBS">
<input TYPE=HIDDEN name="LANGUAGE ID" value="">
<input TYPE=HIDDEN NAME="EWF_BUTTON_Submit" VALUE="Submit">

</form>

<script language=javascript> logon() </script>
Erb, what if you use
<body onload="logon()">
instead of using an embedded script at the end of the page?
<script language=javascript>logon()</script>
Does it change the behavior?
Yeah, sure.  But I didn't write the page.
Granted, it's bad, but all the other browsers can handle it.
While you're at it, try this page:
(Note: the "dropdowns" do not work)

http://www.citibank.com/domain/index1.htm
duplicate of "Cannot submit form if submit() called before onload() is fired"


*** This bug has been marked as a duplicate of 100800 ***
Status: UNCONFIRMED → RESOLVED
Closed: 23 years ago
Resolution: --- → DUPLICATE
You need to log in before you can comment on or make changes to this bug.