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: [email protected]
ReportedBy: [email protected]
QAContact: [email protected]
CC: [email protected]
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.
_______________________________________________
Koha-bugs mailing list
[email protected]
http://lists.koha-community.org/cgi-bin/mailman/listinfo/koha-bugs
website : http://www.koha-community.org/
git : http://git.koha-community.org/
bugs : http://bugs.koha-community.org/