commons-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Carlos Sanchez <comm...@carlos.cousas.net>
Subject [validator] Side effect of allowing multiple forms on the same page
Date Sun, 21 Mar 2004 17:23:45 GMT
The last commit of the javascript code allows multiple forms on the same
page by generating a unique variable name based on form name, adding this
line

oMinLength = eval('new ' + form.name + '_minlength()');

But if any field of the form is called "name" javascript validation doesn't
work as form.name is an object, not a String

For example <html:text property="name"/> makes client side validation stop
working

I post this message so nobody spends its time asking themselves why
validation doesn't work anymore in some pages (as I have already done)

Affected files:
Jakarta-commons/validator/src/javascript/org/apache/commons/validator/javasc
ript/*.js



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


Mime
View raw message