struts-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From kalpesh modi <modi_kalp...@yahoo.com>
Subject action based client side validation
Date Mon, 28 Jun 2004 15:32:42 GMT
Hi,
I made changes to <html:javascript> tag for version
1.2

And sorry about the typo in the previous mail. It is
actually validator-rules.xml and not validation.xml

The change that the validator-rules.xml needs is the
method name needs to be passed to the javascript
functions.

-------------------------------------------------

function validateRequired(form,actionMethod) {
                var isValid = true;
                var focusField = null;
                var i = 0;
                var fields = new Array();
                oRequired = new actionMethod();

------------------------------------------------
Here actionMethod represents the corresponding method
name for a particular action.
So all the javascript functions in the
validator-rules.xml needs to be modified to take two
parameters just as above. This is the only change that
needs to be made to the validator-rules.xml

Thanks,
-Kalpesh

=====
Regards,
-Kalpesh
(703)506-8229 X-3308 (Work)
(203)676-9385 (Mobile)


		
__________________________________
Do you Yahoo!?
Yahoo! Mail - 50x more storage than other providers!
http://promotions.yahoo.com/new_mail

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@struts.apache.org
For additional commands, e-mail: dev-help@struts.apache.org


Mime
View raw message