[Javascript] automatic form submission

Allard Schripsema allard-schripsema at procergs.rs.gov.br
Thu Sep 23 15:14:50 CDT 2004


hi there,
i think you should use submit(), not Submit() ...
Check if the NAME of the form is "MyForm"
Try putting "document"
I usually use something like :
<script type="text/javascript">document.MyForm.submit();</script>

Good luck
Allard


-----Original Message-----
From: javascript-bounces at LaTech.edu
[mailto:javascript-bounces at LaTech.edu]On Behalf Of Innerlab
Sent: Thursday, September 23, 2004 4:49 PM
To: [JavaScript List]
Subject: [Javascript] automatic form submission


In my code, right after a form I wrote:

<script type="text/javascript">MyForm.Submit();</script>

It doesn't seem to be working. I tried the above both inside and outside the
form tag.
Also, I tried something like :

<div onLoad="MyForm.submit();" ></div>

with no luck. It problaby works in the body tag (would it?), but I cannot do
that because this form is in a server side include.

Any suggestions (except a button!)

Thanks in advance.



_______________________________________________
Javascript mailing list
Javascript at LaTech.edu
https://lists.LaTech.edu/mailman/listinfo/javascript





More information about the Javascript mailing list