[Koha-bugs] [Bug 6209] 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 Aug 14 18:24:31 CEST 2012


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

--- Comment #8 from Owen Leonard <oleonard at myacpl.org> ---
I'm still trying to make a decision on this, and at the moment I'm still on the
side of Jörn Zaefferer's Validation plugin if only because it's is under more
active development. Points also go to Zaefferer for creating the original tabs
plugin which was incorporated into jQueryUI.

However, I want to fully understand these concerns:

(In reply to comment #4)
> 
> but I don't like the way we have to declare
> "validation instructions" in HTML tags with Validation plugin: some of them
> can be declared in class attribute (which is designed for styling)

I don't think we should worry about "abusing" the class attribute. It's
perfectly reasonable to use the class attribute for semantically-meaningful
purposes. We use class selectors in many places in Koha jQuery scripts.

> others have to be declared in separate non-standard attributes (eg:
> minlength="2") (by the way, how do we declare "instructions" with more than
> 1 parameter? the documentation is not clear about this).

The Validation plugin lets you define multiple parameters if you're doing the
configuration in your JavaScript.

It sounds like Ketchup would give us the benefit of being able to define more
complex validation parameters directly in HTML tag attributes. Validation would
require that we do so in JavaScript. Does that get to the essence of the
difference?

-- 
You are receiving this mail because:
You are the QA Contact for the bug.
You are watching all bug changes.


More information about the Koha-bugs mailing list