[cgiapp] Unobtrusive Javascript form validation

P Kishor punk.kish at gmail.com
Thu Jul 8 08:46:26 EDT 2010


On Thu, Jul 8, 2010 at 3:35 AM, Richard Jones <ra.jones at dpw.clara.co.uk> wrote:
> On 08/07/2010 01:50, Ron Savage wrote:
>> Hi Folks
>>
>> I don't remember this code being discussed on this list before.
>>
>>> From http://blog.jc21.com/ you can download a JS library for YUI or
>> Prototype which allows amazingly simple JS-level validation of form
>> fields.
>>
>> A five star rating from me.
>
> Looks good. However the field error message is visible when the mouse
> cursor hovers over the textbox, as they have used title="foo" in their
> html. So it's a little confusing when you put a valid url in the box and
> the popup message says 'Website is not valid'. But I like the easy
> customisation of messages, and the output is a little more refined than
> the output from my implementation of JavaScript::DataFormValidator. I
> wonder how easy it would be to port it to jQuery?


there are a ton of jQuery form validator out there, including an official plugin

http://www.google.com/search?client=safari&rls=en&q=jquery+form+validation&ie=UTF-8&oe=UTF-8

-- 
Puneet Kishor http://www.punkish.org
Carbon Model http://carbonmodel.org
Charter Member, Open Source Geospatial Foundation http://www.osgeo.org
Science Commons Fellow, http://sciencecommons.org/about/whoweare/kishor
Nelson Institute, UW-Madison http://www.nelson.wisc.edu
-----------------------------------------------------------------------
Assertions are politics; backing up assertions with evidence is science
=======================================================================


More information about the cgiapp mailing list