Closed Bug 300052 Opened 19 years ago Closed 16 years ago

Firefox javascript processor not understand the code document.ToolBox.submit()

Categories

(Firefox :: General, defect)

x86
Linux
defect
Not set
major

Tracking

()

RESOLVED WORKSFORME

People

(Reporter: webmaster, Unassigned)

Details

User-Agent:       Mozilla/5.0 (X11; U; Linux i686; es-AR; rv:1.7.8) Gecko/20050511 Firefox/1.0.4
Build Identifier: Mozilla/5.0 (X11; U; Linux i686; es-AR; rv:1.7.8) Gecko/20050511 Firefox/1.0.4

In a Web page containing the following javascript code:

document.ToolBox.submit()

Dont Work auto submiting the form, like Internet Explorer.

Example Follow:

<form name="ToolBox" method="POST" action="http://www.somedomain.com/page.asp">
<input type="hidden" name="Cipher" value="A1MBGVRWWGV0Q@">
<input type="hidden" name="Estado" value="2">
<input type="hidden" name="IDProceso" value="1">
<input type="hidden" name="IDPais" value="27">
<input type="hidden" name="Nick" value="fulanito">
<input type="hidden" name="IDU" value="999999">
</form>
<script>
document.ToolBox.submit();
</script>



Reproducible: Always

Steps to Reproduce:
1. Loading a page with the example code not autosubmiting the form
2. The Internet Explorer submit the form correctly


Actual Results:  
The page not autosubmit the form

Expected Results:  
the Firefox Browser must submit the form automatically
Automatic form submittals can cause huge security problems (hence, IE does it).
I'm almost certain this is a WONTFIX/INVALID.
Works for me in Mozilla/5.0 (Windows; U; Win98; en-US; rv:1.8b3) Gecko/20050707
Firefox/1.0+

Though the code should probably be:

document.forms.ToolBox.submit()
WFM as well. Too bad we have to implement every hastely implemented feature of IE..
Status: UNCONFIRMED → RESOLVED
Closed: 16 years ago
Resolution: --- → WORKSFORME
You need to log in before you can comment on or make changes to this bug.