Didn't my reply on this get sent to all the list? (Or is everyone filtering
me these days!)
I mean sure, most of my posts are [OT][FRIDAY][BEER][BS] , but I do slip in
the occasional semi-useful reply sometimes too just to see if people are
paying attention ;->

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


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).
</snip>



-----Original Message-----
From: Paulo Guilherme de Souza [mailto:[EMAIL PROTECTED]]
Sent: Thursday, September 19, 2002 00:41
To: 'Struts Users Mailing List'
Subject: RES: onclick in html:radio tag doesn't work


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


--
To unsubscribe, e-mail:   <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>

Reply via email to