Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Can't call submit() on <html:form> tag

Status
Not open for further replies.

piampri

Programmer
Apr 5, 2006
13
CA
Hi,

I'm trying to manually submit an HTML form using the following :

document.myform.submit() for a Struts form. Does anyone know if there is a problem submitting on these tags ? I get an error indicating that the function is not recognized in Javascript.
 
Suppose I don't have any submit buttons for that matter in the form. Can't I call submit still ?
 
Yes - but that's not what I said. I said to check you have no form elements [!]named[/!] submit - regardless of their [!]type[/!]. Do you have any form elements [!]named[/!] "submit"?

Dan

Coedit Limited - Delivering standards compliant, accessible web solutions

[tt]Dan's Page [blue]@[/blue] Code Couch
[/tt]
 
Yes I did !!

Thanks so much. Your initial suggestion worked. I'm not sure whether I had a typo or something the first time, but on attemtping it again, dynamic submission of the form worked. Thanks so much.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top