even though it might be a round about way, see if you can call a javascript function from the onchange of the form. If you can, then just have the function do the document.submit().
-----Original Message----- From: Oliver Reflé [mailto:[EMAIL PROTECTED] Sent: April 04, 2003 7:08 AM To: Struts Users Mailing List Subject: AW: javascript and Struts yes this i also tried. and : forms[0].submit() and simply submit() In my opinion also the last must work cause the select element is ebedded in the form. But nothing works. -----Ursprüngliche Nachricht----- Von: Stephen Smithstone [mailto:[EMAIL PROTECTED] Gesendet: Freitag, 4. April 2003 13:34 An: Struts Users Mailing List Betreff: Re: javascript and Struts have u tried document.forms[ 0 ].submit( ) ??? On Friday 04 April 2003 12:31 pm, Oliver Reflé wrote: > Hi Guys, > i have a strange problem. Maybe you can help me. I would like to submit a > form when a select box value > has changed.Here is the code like i try it: > > <html:form action="/updateCampaign?target=update" method="POST"> > <table> > <tr><td><b>Datenfeld</b></td><td><b>Wert</b></td></tr> > <tr><td>Kampagnenname:</td><td> > <html:select property="campaignName" onchange="document.submit()"> > <html:option value=""/> > <html:options collection="campaignList" property="label"/> > </html:select> > </td></tr> > > ....... > > I also trid javascript:{document.forms[0].submit()} etc. but nothing > worked. When i try this now on > a normal HTML form it works. But with the struts form i get the message. > Method not supported by object. > > But i cannot imagine why this happens, cause javascript is executed on > client side and there the code > is the same. > > So do you have any idea ?? > > Thx in advance --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]