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

    - Using jQuery to Preload Images with CSS and ...
    - Using Client-Side Scripting to Preload Image...
    - Removing Non-Semantic Markup when Preloading...
    - Using the Display CSS Property to Preload Im...
    - Preloading Images with CSS and JavaScript
    - Scaling and Moving Web Page Elements with th...
    - Fading, Hiding and Sliding HTML Elements wit...
    - Toggling CSS Properties with the GX JavaScri...
    - Cancel, Queue and Pause Animations with the ...
    - Producing Elastic Effects with the GX JavaSc...
    - Moving Divs Diagonally with the GX JavaScrip...
    - Moving Elements Vertically and Horizontally ...
    - Making Bouncing Effects in Parallel with the...
    - Creating Bouncing Effects with the GX JavaSc...
    - Manipulating Background Colors with the GX J...







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