[Koha-bugs] [Bug 6209] New: Standardize on one javascript library for client-side form validation

bugzilla-daemon at bugs.koha-community.org bugzilla-daemon at bugs.koha-community.org
Tue Apr 19 18:15:11 CEST 2011


http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=6209

             Bug #: 6209
           Summary: Standardize on one javascript library for client-side
                    form validation
    Classification: Unclassified
 Change sponsored?: ---
           Product: Koha
           Version: master
          Platform: All
        OS/Version: All
            Status: NEW
          Severity: enhancement
          Priority: P5
         Component: Staff Client
        AssignedTo: paul.poulain at biblibre.com
        ReportedBy: oleonard at myacpl.org
         QAContact: koha-bugs at lists.koha-community.org
                CC: gmcharlt at gmail.com


We handle client-side validation in a piecemeal fashion. It would simplify
things for the user and developers if we standardized on one JavaScript library
for handling all client-side form validation.

I propose we use this one:

http://bassistance.de/jquery-plugins/jquery-plugin-validation/

Syntax is pretty simple:

In the JavaScript:

  $(document).ready(function(){
    $("#commentForm").validate();
  });

In the markup:

 <form id="commentForm" method="get" action="">
 <input id="cname" name="name" size="25" class="required" minlength="2" />

 "class='required'" tells the script to validate that field as required. Other
options include email, url, date, number, specific length, etc.

-- 
Configure bugmail: http://bugs.koha-community.org/bugzilla3/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the QA Contact for the bug.


More information about the Koha-bugs mailing list