Should that not be "document.forms[0].submit();"?
(Note the s in forms)

Another thing you might want to check while your looking there is that the
form doesnt have a submit button with a name or id of "submit" (as that
would shadow the submit method in the form object)

You wont see anything in the log as this is a client side error
(javascript).

-----Original Message-----
From: Howard Miller [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, September 18, 2002 23:18
To: 'Struts Users Mailing List'
Subject: RE: onclick in html:radio tag doesn't work


Have you enabled script debugging (default is disabled in IE) on the
Advanced tab of the Internet Options - may give you a clue.

Howard Miller

-----Original Message-----
From: Cathy Osekizoglu [mailto:[EMAIL PROTECTED]]
Sent: 18 September 2002 16:10
To: Struts Users Mailing List
Subject: onclick in html:radio tag doesn't work



 Hi:
I have a jsp using form, when I click a radio button in the form, I want the
form to be submitted. The following is the jsp snippet:
<html:form action="/payments.do" >
<html:radio property="criteria" value="all"
onclick="document.form[0].submit()"/>
But when I click on the button, in the status bar, it shows"error on page",
but nothing showing on the error log. I have tried both "onClick"(upper case
"C") and onclick. Neither works. accountHistory.do has correctly defined in
my struts-config.xml.
Thanks for your help.



---------------------------------
Post your free ad now! Yahoo! Canada Personals

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

Reply via email to