JavaScript
  Home arrow JavaScript arrow Checking Online Forms with the Validator j...
Dev Articles Forums 
ADO.NET  
Apache  
ASP  
ASP.NET  
C#  
C++  
ColdFusion  
COM/COM+  
Delphi-Kylix  
Design Usability  
Development Cycles  
DHTML  
Embedded Tools  
Flash  
Graphic Design  
HTML  
IIS  
Interviews  
Java  
JavaScript  
MySQL  
Oracle  
Photoshop  
PHP  
Reviews  
Ruby-on-Rails  
SQL  
SQL Server  
Style Sheets  
VB.Net  
Visual Basic  
Web Authoring  
Web Services  
Web Standards  
XML  
Mobile Linux 
App Generation ROI 
IBM® developerWorks 
Weekly Newsletter
 
Developer Updates  
Free Website Content 
 RSS  Articles
 RSS  Forums
 RSS  All Feeds
Write For Us Get Paid 
Request Media Kit
Contact Us 
Site Map 
Privacy Policy 
Support 
 USERNAME
 
 PASSWORD
 
 
  >>> SIGN UP!  
  Lost Password? 
JAVASCRIPT

Checking Online Forms with the Validator jQuery Plug-in
By: Alejandro Gervasio
  • Search For More Articles!
  • Disclaimer
  • Author Terms
  • Rating: 5 stars5 stars5 stars5 stars5 stars / 2
    2009-10-23

    Table of Contents:
  • Checking Online Forms with the Validator jQuery Plug-in
  • A simple online form
  • Validating the HTML form
  • Validating web forms selectively

  • Rate this Article: Poor Best 
      ADD THIS ARTICLE TO:
      Del.ici.ous Digg
      Blink Simpy
      Google Spurl
      Y! MyWeb Furl
    Email Me Similar Content When Posted
    Add Developer Shed Article Feed To Your Site
    Email Article To Friend
    Print Version Of Article
    PDF Version Of Article
     
     
    ADVERTISEMENT


    Checking Online Forms with the Validator jQuery Plug-in


    (Page 1 of 4 )

    If you consider form validation applications to be the kind of coding you least look forward to, keep reading. Thanks to the Validator jQuery plug-in, validating form input from users just got a lot easier. This seven-part series will show you the ways you can use the plug-in to help you build form validation scripts much faster than you may have thought possible.

    Validating online forms has always been a crucial web development topic, inspiring many passionate debates. The subject of form validation always seems to generate tons of feedback when posted in a forum. Regardless of the opinions you might have about it, you'll surely agree that checking data submitted through a web form is a mandatory process, and must be performed on the web server, whether or not this data has been previously verified in the client via JavaScript.

    Typically, however, an online form that collects a huge amount of information needs to be enhanced with a client-side mechanism that tells users what type of data should be entered in a specific field, or of there's an offending field that needs to be repopulated.

    Of course, to accomplish this in an elegant and professional way, you might want to develop a custom JavaScript application, capable of displaying input errors in a truly responsive way. This approach can be not only time-consuming, but may not produce the results that you'd expect.

    Fortunately, there's no need to reinvent the wheel when it comes to checking online forms in the client. Thanks to JavaScript libraries like jQuery, Prototype and so forth, there are a growing number of plug-ins that permit you to achieve this process in a truly painless fashion. Best of all, you'll only need to write a few lines of unobtrusive JavaScript code.

    The Validator plug-in developed by Jörn Zaefferer at  is a JavaScript masterpiece that allows you to validate online forms in all sorts of clever ways, without having to mess up your fancy markup with online event handlers. Thus, in this series of articles, I'll be taking a closer look at this plug-in, so you can enjoy its powerful form-checking features as much as I did myself.

    Now, it's time to get rid of the preliminaries and learn how to use this handy jQuery plug-in to make client-side form validation a truly fun experience. Let's jump in!

    More JavaScript Articles
    More By Alejandro Gervasio


       · The Validator jQuery plug-in makes client-side form validation a fun and easy...
     

    JAVASCRIPT ARTICLES

    - Comparing Fields and Customizing Error Messa...
    - Checking Numbers and File Extensions with jQ...
    - Validating Digits and Dates with jQuery`s Va...
    - Validating Ranges, Emails, and URLs with jQu...
    - More Uses for the jQuery Tooltip Plug-in`s b...
    - Building Image-Based Tooltips with the jQuer...
    - Using the jQuery Tooltip Plug-in`s bodyHandl...
    - Using Rangelength, Min and Max with the Vali...
    - Using Minlength and Maxlength with the Valid...
    - Modifying Tooltip Coordinates with the jQuer...
    - Applying a Fade Out Effect with the jQuery T...
    - Tracking Mouse Movements with the jQuery Too...
    - Checking Online Forms with the Validator jQu...
    - Nested JavaScript Functions as Objects
    - The jQuery Tooltip Plug-in







    © 2003-2009 by Developer Shed. All rights reserved. DS Cluster 5 Hosted by Hostway
    For more Enterprise Application Development news, visit eWeek