JavaScript
  Home arrow JavaScript arrow Validating Ranges, Emails, and URLs with 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

Validating Ranges, Emails, and URLs with jQuery`s Validator Plug-in
By: Alejandro Gervasio
  • Search For More Articles!
  • Disclaimer
  • Author Terms
  • Rating: 5 stars5 stars5 stars5 stars5 stars / 1
    2009-11-05

    Table of Contents:
  • Validating Ranges, Emails, and URLs with jQuery`s Validator Plug-in
  • Review: the rangelength, min and max options
  • Introducing the range argument
  • Validating email addresses and URLs with the email and url options

  • 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


    Validating Ranges, Emails, and URLs with jQuery`s Validator Plug-in


    (Page 1 of 4 )

    In this fourth part of a seven-part series on the jQuery Validator plug-in, I explain how to use the “range,” “email” and “url” options provided for checking numeric ranges, URLs and email addresses. Using these arguments is an intuitive process that can be learned in a very short time.If you ask yourself what features make a form validation JavaScript program the choice of many web designers, the answer will probably be that it should be easy to use, be packaged with a decent set of checking methods, and be utilized in a really unobtrusive way.

    Well, fortunately there’s a program like this available for free -- it’s a handy jQuery plug-in called Validator. Indeed, this plug-in is a powerful application that allows you to check online forms in all sorts of clever ways, without having to mess up your web pages' markup with ugly and annoying JavaScript event handlers.

    Logically, if you've already read all of the preceding articles of this series, then you have some solid knowledge of how to use the Validator plug-in to check data collected through HTML forms. In earlier tutorials I explained how to use certain options for validating empty strings, length ranges and numeric values as well.

    But, if all of these abilities aren’t good enough for you, then let me tell you that Validator comes bundled with another bunch of features that permit you to validate numeric ranges, email addresses and URLs in a truly straightforward fashion. Therefore, if you’re interested in learning how to accomplish all of these tasks using the plug-in, in this fourth part of the series I’ll be discussing in depth the implementation of its “range,” “email” and “url” options, so you can use them when checking your own web forms.

    Are you ready to continue exploring the capabilities of the Validator jQuery plug-in? Then click on the link below and we'll get started. 

    More JavaScript Articles
    More By Alejandro Gervasio


       · This installment of the series discusses in depth the use of the "range", "email"...
     

    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 6 Hosted by Hostway
    For more Enterprise Application Development news, visit eWeek