Displaying 1 result from an estimated 1 matches for "currentfield".
2006 Feb 07
2
Objects and Properties
...to be checked to an
array called fields (edited for simplicity):
/* ***************** */
fields = new Array();
fields[pFieldName] = new Field(pFieldName, name);
/* ***************** */
Later on when it''s validating this field it does something like this:
/* ***************** */
for(var currentField in fields) {
if(!fields[currentField].validate()) {
isValid = false;
}
}
/* ***************** */
The previous developer used a for in loop to go through all the fields
in his array and run the validate method on each one... The problem is
there is a ton of extra methods in the ob...