Home arrow JavaScript arrow Adding Server-side Capabilities to Form Validation with the DOM
JAVASCRIPT

Adding Server-side Capabilities to Form Validation with the DOM


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.

Author Info:
By: Alejandro Gervasio
Rating: 5 stars5 stars5 stars5 stars5 stars / 6
November 07, 2006
TABLE OF CONTENTS:
  1. · Adding Server-side Capabilities to Form Validation with the DOM
  2. · A quick look at the previous form validation script
  3. · Adding server-side capabilities to the original application
  4. · Completing the form validation class
  5. · Assembling the client and server-side modules of the application

print this article
SEARCH DEVARTICLES

TOOLS YOU CAN USE

advertisement
Adding Server-side Capabilities to Form Validation with the DOM
(Page 1 of 5 )

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!


blog comments powered by Disqus
JAVASCRIPT ARTICLES

- More Top jQuery Tutorials for Beginners
- More Top jQuery Plugins for Menus
- Top jQuery Tutorials for Beginners
- New UI Framework and SDK for JavaScript Rele...
- JavaScript OpenPGP Tool, Node.js 0.6.3 Avail...
- Yahoo Releases Cocktails Language and Develo...
- Customizing jQuery Slideshows: Dynamic Contr...
- Customizing jQuery Slideshows: the animate()...
- Customizing jQuery Slideshows: slideUp() and...
- Customizing jQuery Slideshows: hide() and sh...
- Web Workers: Performing Calculations in Para...
- More Top JavaScript Frameworks and Libraries
- More Dynamic jQuery Styling Techniques
- The Top JavaScript Libraries
- The Top JavaScript Frameworks

Dev Articles Forums 
 RSS  Articles
 RSS  Forums
 RSS  All Feeds
Weekly Newsletter
 
Developer Updates  
Free Website Content 
Contact Us 
Site Map 
Privacy Policy 
Support 



© 2003-2012 by Developer Shed. All rights reserved. DS Cluster 9 - Follow our Sitemap
Popular Web Development Topics
All Web Development Tutorials