Wrox Home  
Search P2P Archive for: Go

  Return to Index  

html_code_clinic thread: [html_code_clinic]Re: submitting a form


Message #1 by "Danger Stevens" <manofgod@u...> on Fri, 6 Jul 2001 19:20:39 -0700
Ahoy,
   Yeah, Javascript always requires trial and error for those of us who
don't like to buy books.  I think executing this will solve your problem:

document.main.submit()

 - Danger

----- Original Message -----
From: "Balajewicz, Greg" <Greg.Balajewicz@A...>
To: "HTML Code Clinic" <html_code_clinic@p...>
Sent: Thursday, July 05, 2001 5:00 PM
Subject: [html_code_clinic] submitting a form


> 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