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

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

- Project Nashorn to Make Java, JavaScript Wor...
- JavaScript Virus Attacks Tumblr Blogs
- Google Releases Stable Dart Version, JavaScr...
- Khan Academy Unveils New JavaScript Learning...
- Accessing Nitro? There`s an App for That
- JQuery 2.0 Leaving Older IE Versions Behind
- Fastest JavaScript Engine Might Surprise You
- Microsoft Adjusting Chakra for IE 10
- Brendan Eich: We Don`t Need Google Native Cl...
- An Overview of JavaScript Statements
- An Overview of JavaScript Operators
- Overview of JavaScript Variables
- More of the Top jQuery Social Plugins
- The Top jQuery Social Plugins
- More of the Top jQuery Slider Plugins

Watch our Tech Videos 
Dev Articles Forums 
 RSS  Articles
 RSS  Forums
 RSS  All Feeds
Write For Us 
Weekly Newsletter
 
Developer Updates  
Free Website Content 
Contact Us 
Site Map 
Privacy Policy 
Support 

Developer Shed Affiliates

 




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