Home arrow JavaScript arrow Form Validation with Progressive Enhancement: Final Touches
JAVASCRIPT

Form Validation with Progressive Enhancement: Final Touches


In this sixth part of a series, I finish building a sample web application tasked with validating web forms via Ajax and PHP. The use of Progressive Enhancement is crucial to keeping the application working as expected, even if JavaScript is disabled on the browser.

Author Info:
By: Alejandro Gervasio
Rating: 5 stars5 stars5 stars5 stars5 stars / 3
July 21, 2010
TABLE OF CONTENTS:
  1. · Form Validation with Progressive Enhancement: Final Touches
  2. · Review: building a form validation program using Progressive Enhancement
  3. · A basic data validation PHP class
  4. · A simple data checking script

print this article
SEARCH DEVARTICLES

TOOLS YOU CAN USE

advertisement
Form Validation with Progressive Enhancement: Final Touches
(Page 1 of 4 )

While at first glance the process may look challenging and even intimidating, the truth is that using Progressive Enhancement (PE) to increase the accessibility of some common real-world web applications, such as dynamic image galleries, drop-down menus and form validators is much easier than you might think. Of course, the best way to prove this is by example. With that requirement in mind, in earlier chapters of this series I went through the development of some extensible web programs which relied on the functionality provided by PE to work properly, even if JavaScript was disabled on the browser.

I left off the last tutorial explaining how to create a web application whose main goal was to validate, on the server side, data entered in a web form. It used a combination of the Ajax capabilities offered by jQuery and PHP. In accordance with the model imposed by PE, this application was capable of maintaining its core functionality intact, even if scripting was turned off on the client.

It’s fair to clarify, however, that in its current state the aforementioned application isn’t completely functional. It needs the PHP script responsible for performing the actual validation process on the inputted data, which we haven't written yet. Therefore, over the course of this sixth installment of the series I’m going to build the corresponding PHP script, which in this particular case will use an instance of a validation class to perform the checking task behind the scenes.

So, are you ready to learn the full details concerning the definition of this PHP class? Then let’s get started right now!


blog comments powered by Disqus
JAVASCRIPT ARTICLES

- 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
- Dynamic jQuery Styling

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 3 - Follow our Sitemap
Popular Web Development Topics
All Web Development Tutorials