Hi Cathy.

 Try this: Change form to forms (include a s)

Paulo

-----Mensagem original-----
De: Cathy Osekizoglu [mailto:[EMAIL PROTECTED]]
Enviada em: quarta-feira, 18 de setembro de 2002 13:39
Para: Struts Users Mailing List
Assunto: RE: onclick in html:radio tag doesn't work



 I put semi-colon ";" after submit(). So now it is like  <html:radio
property="criteria" value="all" onclick="document.form[0].submit();">. When
I click on the radio button, I got "document.form.0 is null or not an
object" in the pop up window. The source I got by viewing source is: 
 <input type="radio" name="criteria" value="all" checked="checked"
onclick="document.form[0].submit();">

I have enabled script debugging.

Any ideas. Thanks for all your reply.

Regards

 

 

Also, have you visually checked the HTML source (and included JavaScript)
that Struts/JSP has produced to make sure it looks sensible. If in doubt
post the relevant bit here.

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:

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: 
For additional commands, e-mail: 




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

Reply via email to