I've already verified that this works using a non-struts form.   The syntax
you are suggesting is equivalent to the shorthand I used.


-----Original Message-----
From: Dhruva B. Reddy [mailto:[EMAIL PROTECTED]
Sent: Wednesday, July 23, 2003 4:01 PM
To: Struts Users Mailing List
Subject: Re: Auto submit with JavaScript


I didn't know this would submit the form.

I would have used something like:

onchange="document.accountAdjustmentForm.submit()"

Dhruva

--- [EMAIL PROTECTED] wrote:
> Hello,
>     I am developing a an application that automatically submits a
> form when
> a user selects a value from a drop down.
> 
> <html:select property="reasonCode" styleClass="requiredselect"
> onchange="document.forms.accountAdjustmentForm.notes.focus();">
> 
> This works fine using the normal HTML select tag but does nothing
> deployed
> as a struts app.   I don't even receive a JavaScript error. 
> 
> Is there a conflict with the struts included focus javascript?   Can
> this be
> disabled?
> 
> Thanks
> Guy Molinari
> 
> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 


__________________________________
Do you Yahoo!?
Yahoo! SiteBuilder - Free, easy-to-use web site design software
http://sitebuilder.yahoo.com

---------------------------------------------------------------------
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]

Reply via email to