Hi all,
just as title
Thanks.
Talos
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
: 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
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
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
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
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
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
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
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
10 matches
Mail list logo