How to enable the client side validation?

2008-03-26 Thread Chen Chunwei
Hi all, just as title Thanks. Talos

Re: How to enable the client side validation?

2008-03-26 Thread Nils-Helge Garli Hegvik
http://struts.apache.org/2.x/docs/client-side-validation.html Nils-H On Wed, Mar 26, 2008 at 9:34 AM, Chen Chunwei [EMAIL PROTECTED] wrote: Hi all, just as title Thanks. Talos - To unsubscribe, e-mail: [EMAIL

Re: How to enable the client side validation?

2008-03-26 Thread Chen Chunwei
: Wednesday, March 26, 2008 4:39 PM Subject: Re: How to enable the client side validation? http://struts.apache.org/2.x/docs/client-side-validation.html Nils-H On Wed, Mar 26, 2008 at 9:34 AM, Chen Chunwei [EMAIL PROTECTED] wrote: Hi all, just as title Thanks. Talos

Re: How to enable the client side validation?

2008-03-26 Thread Chen Chunwei
Petrelli [EMAIL PROTECTED] To: Struts Users Mailing List user@struts.apache.org Sent: Wednesday, March 26, 2008 4:56 PM Subject: Re: How to enable the client side validation? 2008/3/26, Chen Chunwei [EMAIL PROTECTED]: My struts version is 1.1. And I tried to add html:javascript formName

Re: How to enable the client side validation?

2008-03-26 Thread Chen Chunwei
the client side validation? 2008/3/26, Chen Chunwei [EMAIL PROTECTED]: As I said, I've already used html:javascript. Of course, I've alse done the other stuff found in the document you refer to (offline version). But it does not work. What exactly does not work? Give more details, for example

Re: How to enable the client side validation?

2008-03-26 Thread Antonio Petrelli
2008/3/26, Chen Chunwei [EMAIL PROTECTED]: Well, the case is that the Javascript code was generated well, but it was not triggered. Well, that's strange. Can you post, the generated HTML and Javascript code? What browser are you using? Changing browser changes anything? Antonio

Re: How to enable the client side validation?

2008-03-26 Thread Antonio Petrelli
2008/3/26, Chen Chunwei [EMAIL PROTECTED]: As I said, I've already used html:javascript. Of course, I've alse done the other stuff found in the document you refer to (offline version). But it does not work. What exactly does not work? Give more details, for example, exceptions at startup of

Re: How to enable the client side validation?

2008-03-26 Thread Chen Chunwei
the client side validation? 2008/3/26, Chen Chunwei [EMAIL PROTECTED]: Well, the case is that the Javascript code was generated well, but it was not triggered. Well, that's strange. Can you post, the generated HTML and Javascript code? What browser are you using? Changing browser changes anything

Re: How to enable the client side validation?

2008-03-26 Thread Antonio Petrelli
2008/3/26, Chen Chunwei [EMAIL PROTECTED]: There's an attribute in html:javascript named method. You can specify a name in this attribute such as validateForm. Then specify the onsubmit event of the actual form with return validateForm(this);. After all, the javascript works. The above

Re: How to enable the client side validation?

2008-03-26 Thread Chen Chunwei
Sorry for mis-typing. But I wonder know ... should be But I wanna know... Talos - Original Message - From: Chen Chunwei [EMAIL PROTECTED] To: Struts Users Mailing List user@struts.apache.org Sent: Wednesday, March 26, 2008 5:34 PM Subject: Re: How to enable the client side validation