It's not actually a problem with struts - you can't submit from a select. Oz
-----Original Message----- From: Jacob Hookom [mailto:[EMAIL PROTECTED]] Sent: Sunday, 18 August 2002 8:52 AM To: 'Struts Users Mailing List' Subject: RE: form submit() method is not recognized. Try doing something small first, like doing alert(document.forms[0].country.value) and see if you even get that, then you can start to determine your error. | -----Original Message----- | From: Olga Agady [mailto:[EMAIL PROTECTED]] | Sent: Saturday, August 17, 2002 4:57 PM | To: Struts Users Mailing List | Subject: form submit() method is not recognized. | | Hello, | | I am using struts 1.0.2. I experience a wierd problem: | When I submit the form after a user selects an item | from a drop-down select box: | | <html:select property="country" | onchange="document.forms[0].submit()">, | | I get run-time error that "Object doesn't support a | property or a method". I tried to re-write the code | with different variations like: | | <html:select property="country" | onchange="submitForm()">, | | <SCRIPT> | function submitForm(){ | document.forms[0].submit(); | } | </SCRIPT> | | Whatever I do, when the script starts running the line | document.forms[0].submit(), I get the same error. | Looks like submit() method is not recognized. Did | someone have a similar problem? | | | Thanks, | Olga | | | | __________________________________________________ | Do You Yahoo!? | HotJobs - Search Thousands of New Jobs | http://www.hotjobs.com | | -- | To unsubscribe, e-mail: <mailto:struts-user- | [EMAIL PROTECTED]> | For additional commands, e-mail: <mailto:struts-user- | [EMAIL PROTECTED]> | | --- | Incoming mail is certified Virus Free. | Checked by AVG anti-virus system (http://www.grisoft.com). | Version: 6.0.381 / Virus Database: 214 - Release Date: 8/2/2002 | --- Outgoing mail is certified Virus Free. Checked by AVG anti-virus system (http://www.grisoft.com). Version: 6.0.381 / Virus Database: 214 - Release Date: 8/2/2002 -- To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]> For additional commands, e-mail: <mailto:[EMAIL PROTECTED]> -- To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]> For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>