JavaScript
  Home arrow JavaScript arrow Introducing Key Concepts for Form Validati...
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 
Sun Developer Network 
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

Introducing Key Concepts for Form Validation with the DOM
By: Alejandro Gervasio
  • Search For More Articles!
  • Disclaimer
  • Author Terms
  • Rating: 5 stars5 stars5 stars5 stars5 stars / 5
    2006-10-24

    Table of Contents:
  • Introducing Key Concepts for Form Validation with the DOM
  • Creating an old-fashioned form validation mechanism
  • Using the DOM for validating online forms
  • Removing error messages from the web page
  • Completing the validation script

  • 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


    Introducing Key Concepts for Form Validation with the DOM


    (Page 1 of 5 )

    If you're looking for ways to validate the data submitted on your web forms, you'll be interested in this article. It's the first in a series that explains how to use the DOM to supplement your server-side validation techniques.

    Among the huge number of topics that fall under the category of web development, I'm pretty certain that client-side form validation is one of the most covered, due to its relative ease of implementation and the abundance of pre-built validation scripts that can be found on the web today.

    While verifying the validity of user-supplied data with JavaScript is in fact an old subject, it's worthwhile to stress that the process itself has evolved to more sophisticated techniques, in consonance with the tends of modern web design and programming. Naturally, if you're like me, then you've probably been using those "alert" methods from many years, particularly when the DOM (Document Object Model) was very far from reaching the decent level of standardization that it has currently.

    Fortunately for you and me, on today's web, client-side validation can be performed in a few elegant ways. This means that, at least progressively, alert-based notification messages will be eventually discarded, and more standard methods for checking online forms will be introduced.

    Provided that you have a basic background on the DOM and its helpful bunch of methods, in this group of accessible articles, I'm going to introduce the basic concepts of how to develop a simple yet efficient mechanism for validating web forms, using only a DOM-driven methodology. Of course, this doesn't mean that you have to quickly get rid of server-side validation, which certainly is the most robust method you'll ever find, but you can use JavaScript as a good complement for your data checking routines that reside on the server.

    Now, you already know what this series is about, therefore come with me and learn how to create a form validation system with the DOM. The experience will be fairly instructive, trust me!

    More JavaScript Articles
    More By Alejandro Gervasio


       · In this first part of the series, you'll learn how to use the DOM, in order to...
       · Hi:I would have loved to read your article, but when I increase the text size...
       · Hi, tedd. All of our sites are designed for 1024x768 resolution. The...
       · Hello Ted,Thank you for your interest on my DOM article. As Robert gently said...
     

    JAVASCRIPT ARTICLES

    - Using Click Interceptions with a Database-Dr...
    - Using JavaScript Click Interceptions in an I...
    - Using Click Interceptions with JavaScript
    - QuickSort in Action
    - Quicksort
    - Using Mod_Security to Protect Your Server
    - Detecting and Countering Server Intrusions
    - Securing Your Web Server
    - Building a Secure Web Server
    - Protecting the Server
    - Book Review: Learning the Yahoo! User Interf...
    - Dynamically Generate a Selection List in a R...
    - Intergrate DWR into Your Java Web Application
    - Detect Browser Compatibility with the Reques...
    - Using the EXT JS Date Picker Widget






    © 2003-2008 by Developer Shed. All rights reserved. DS Cluster 4 hosted by Hostway
    Stay green...Green IT