@UNSUPPORTED_BROWSERS
);
-$VERSION = '2.14';
+$VERSION = '2.20';
$DEFAULT_EXT = 'val';
$QR_EXTRA = qr/^(\w+_error|as_(array|string|hash)_\w+|no_\w+)/;
push @$fields, { %{$val_hash->{$field}}, field => $field };
}
}
+ return if ! $fields;
### Finally we have our arrayref of hashrefs that each have their 'field' key
### now lets do the validation
This is for use in conjunction with perl's -T switch.
+=item C<clear_on_error>
+
+Clears the form field should a validation error occur. Only supported
+on the Javascript side (no affect on the server side).
+
=back
=head1 ERROR OBJECT
Thanks to Eamon Daly for providing bug fixes for bugs in validate.js
caused by HTML::Prototype.
-=head1 AUTHOR
-
-Paul Seamons
-
=head1 LICENSE
This module may be distributed under the same terms as Perl itself.
-=cut
+=head1 AUTHOR
+Paul Seamons <perl at seamons dot com>
+=cut