[Javascript] Form submission problem

Peter Brunone peter at brunone.com
Mon Aug 20 09:04:18 CDT 2001


	Try referencing the forms collection as well, e.g.
document.forms.generate.submit() .

	If that doesn't work, make sure there's no other object in your page named
"generate".

|-----Original Message-----
|From: javascript-admin at LaTech.edu [mailto:javascript-admin at LaTech.edu]On
|Behalf Of Rees, Mark (TWIi London)
|Sent: Monday, August 20, 2001 6:14 AM
|To: 'javascript at LaTech.edu'
|Subject: [Javascript] Form submission problem
|
|
|Hello
|
|I'm trying to submit a form using a text link rather than an image/submit
|button. The form is called generate (not a reserved word as far as I can
|see) so my syntax is like so:
|
|<a href="javascript:document.generate.submit();">submit</a>
|
|This gives me a line 1 char 1 Document does not support this property or
|method error (in ie). In netscape I get document.generate.submit is not a
|function. However the submit button right next to it works fine.
|
|I've used this syntax before on other forms - I'm totally
|mystified. I would
|post code but it's a bit massive.
|
|Any ideas?
|
|Thanks for any help you can provide
|
|Mark
|_______________________________________________
|Javascript mailing list
|Javascript at LaTech.edu
|http://www.LaTech.edu/mailman/listinfo/javascript
|




More information about the Javascript mailing list