Wrox Home  
Search P2P Archive for: Go

  Return to Index  

html_code_clinic thread: submitting a form


Message #1 by "Balajewicz, Greg" <Greg.Balajewicz@A...> on Thu, 5 Jul 2001 19:00:13 -0500
try

document.MainForm.submit()

At 19:00 05/07/01 -0500, you wrote:
>Hello everybody!
>
>I am having a weird problem that I hope someone can help me with:
>
>I have a form like so:
>         <FORM  action=File.asp method=post id=main name="MainForm">
>which I am trying to submit with this javascript (all in IE5.01):
>         document.all("main").submit();
>
>It crashed with an error: Object doesn't support this property of method.
>
>I tried
>         alert(document.all("main").name);
>and it returns "MainForm"
>I also tried
>         document.all("main").reset();
>and it works fine.
>
>
>What I am doing wrong ?????
>Any help would be greatly appreciated!
>Thanks
>Greg
>

  Return to Index