JavaScript
  Home arrow JavaScript arrow Adding Server-side Capabilities to Form Va...
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  
Dedicated Servers  
Moblin 
JMSL Numerical Library 
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

Adding Server-side Capabilities to Form Validation with the DOM
By: Alejandro Gervasio
  • Search For More Articles!
  • Disclaimer
  • Author Terms
  • Rating: 5 stars5 stars5 stars5 stars5 stars / 5
    2006-11-07

    Table of Contents:
  • Adding Server-side Capabilities to Form Validation with the DOM
  • A quick look at the previous form validation script
  • Adding server-side capabilities to the original application
  • Completing the form validation class
  • Assembling the client and server-side modules of the application

  • 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


    Adding Server-side Capabilities to Form Validation with the DOM


    (Page 1 of 5 )

    Are you looking for a comprehensive guide on how to create a form validation system that uses the DOM for displaying error messages, instead of showing silly alerts? Then this group of three articles (of which this one is the third) may fit your requirements. They're aimed at showing you how to perform client-side validation on your own online forms.

    Introduction

    Despite the fact that checking the validity of data entered in web forms has been covered many times, the introduction of modern techniques of web development, destined to dynamically manipulate the tree of a given web document, opens a brand new range of possibilities for displaying error messages and notices.

    Naturally, this ability, which is implemented via JavaScript, requires a stronger background on the Document Object Model, but it doesn’t mean that you have to be a guru on the subject. By using only a few straightforward DOM methods, it’s possible to develop a form validation mechanism like the one described in the two preceding articles without having to use old-fashioned alerts.

    I’ve been using this type of script during the development of distinct web applications that only required basic client-side validation on online forms. I've achieved decent results, so naturally I thought the experience itself deserved an in-depth look. Keeping this in mind, in the two previous articles of the series I explained how to create a simple form validation mechanism which utilizes the DOM to display the corresponding error messages.

    However, due to the fact that any robust form checking application must be founded on the capabilities offered by server-side validation, in this final part of the series I’ll show you how to integrate the existing client-side script with a handy form verification class, developed with PHP 5. Hopefully, the correct integration of both client and server modules should result in the implementation of a robust mechanism, handy for verifying the validity of all the data entered into web forms.

    Having defined the subject of this concluding tutorial, let’s move on and learn together how to add server-side validation capabilities to the original client script. Let’s go!

    More JavaScript Articles
    More By Alejandro Gervasio


       · In this final part of the series, the original form validation application is...
     

    JAVASCRIPT ARTICLES

    - 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
    - Ajax Hack for Entering Information Without R...
    - EXT JS 2.1 Overview
    - Using the Style Object for Zebra Tables with...
    - Binary Searching
    - An Improved Approach to Building Zebra Tables
    - Assigning Background Colors Dynamically to Z...
    - Building Zebra Tables with CSS and JavaScript
    - JavaScript: Array Objects
    - A Closer Look at Smart Markers with Yahoo! M...
    - Using Polylines and Smart Markers with Yahoo...







    © 2003-2008 by Developer Shed. All rights reserved. DS Cluster 1 hosted by Hostway