File Coverage

blib/lib/JavaScript/DataFormValidator.pm
Criterion Covered Total %
statement 18 18 100.0
branch n/a
condition n/a
subroutine 6 6 100.0
pod 2 2 100.0
total 26 26 100.0


line stmt bran cond sub pod time code
1             package JavaScript::DataFormValidator;
2 1     1   20945 use warnings;
  1         2  
  1         28  
3 1     1   5 use strict;
  1         2  
  1         27  
4 1     1   5 use base 'Exporter';
  1         6  
  1         80  
5 1     1   6 use vars (qw/@EXPORT $VERSION/);
  1         1  
  1         207  
6             @EXPORT = (qw/
7             &js_dfv_profile
8             &js_dfv_onsubmit
9             /);
10              
11              
12             =head1 NAME
13              
14             JavaScript::DataFormValidator - JavaScript form validation from a Perl Data::FormValidator profile
15              
16             =cut
17              
18             $VERSION = '0.50';
19              
20             =head1 SYNOPSIS
21              
22             This module helps with setting up a JavaScript validation for a form using
23             Data.FormValidator, a JavaScript port of L. A key feature
24             of this system is that it allows you to use the I validation
25             profile for both Perl and JavaScript validation.
26              
27             You should read the docs for the JavaScript implementation for some limitations:
28             http://www.openjsan.org/doc/u/un/unrtst/Data/FormValidator/
29              
30             Here's an example with HTML::Template syntax:
31              
32            
33              
34            
35              
36            
>
37