Jun 29, 2001 #1 xenomage Programmer Jun 27, 2001 98 SG Hi all, how do i submit a form from a function?? i tried this. myForm.Submit but it gives me the error msg that myForm is not an object. Please help.
Hi all, how do i submit a form from a function?? i tried this. myForm.Submit but it gives me the error msg that myForm is not an object. Please help.
Jun 29, 2001 #2 mijulie Programmer Jun 21, 2001 36 IE I don't know if this is what u are asking but, u need; sub b1_onclick anyline following the above is what action is to be taken when u submit. where b1 is the id/name of the submit button in the html code below; <INPUT type="button" value="Submit" id=b1 name=b1 > If this doesn't help let me know in more detail what the problem is! Mijulie Upvote 0 Downvote
I don't know if this is what u are asking but, u need; sub b1_onclick anyline following the above is what action is to be taken when u submit. where b1 is the id/name of the submit button in the html code below; <INPUT type="button" value="Submit" id=b1 name=b1 > If this doesn't help let me know in more detail what the problem is! Mijulie
Jun 30, 2001 #3 vrhitman Programmer Jul 24, 2000 4 US I hope this helps, with MyForm, be sure that the <form name="MyForm"> in the html code. Also, try <input type="submit" value="Submit">. The other way to do it is in a form, using an image map, <img src="http://foo.bar/img.gif" onclick="Submit()">. Im not sure if you need the parenthensis in the latter, but i know thats a valid method. Good luck! Upvote 0 Downvote
I hope this helps, with MyForm, be sure that the <form name="MyForm"> in the html code. Also, try <input type="submit" value="Submit">. The other way to do it is in a form, using an image map, <img src="http://foo.bar/img.gif" onclick="Submit()">. Im not sure if you need the parenthensis in the latter, but i know thats a valid method. Good luck!
Jun 21, 2002 #4 VBGuy2112 Programmer Feb 19, 2002 58 US I know this question was an old one (that I just found), but you can also submit a form from a VBScript function by using the following line: Document.Forms(0).Submit() Upvote 0 Downvote
I know this question was an old one (that I just found), but you can also submit a form from a VBScript function by using the following line: Document.Forms(0).Submit()