I have been trying to get tis to work for the better half of the day
and no go. Weather I set "serial" to false or true the entire forms
seems to get validated. We went into the code and it seems as if the
serial part runs into some circular logic:
alidate: function(event){
var result = this.getFields().map(function(field){
return this.validateField(field, true);
}, this).every(function(v){
return v;
});
this.fireEvent('formValidate', [result, this.element, event]);
if (this.options.stopOnFailure && !result && event)
event.preventDefault();
return result;
},
validateField: function(field, force){
if (this.paused) return true;
field = document.id(field);
var passed = !field.hasClass('validation-failed');
var failed, warned;
if (this.options.serial && !force){
failed = this.element.getElement('.validation-failed');
warned = this.element.getElement('.warning');
}
if (field && (!failed || force || field.hasClass('validation-failed')
|| (failed && !this.options.serial))){
var validationTypes = field.get('validators');
code goes on-------------------------------------------------->
It appears that this.option.serial is never the right state at the
right time. Am I wrong? If I am, could someone show me how to use the
"serial" property for Form.Validator?
Thanks in advance.
joe