HTML
  Home arrow HTML arrow DHTML Form Enhancement
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 
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? 
HTML

DHTML Form Enhancement
By: David Fells
  • Search For More Articles!
  • Disclaimer
  • Author Terms
  • Rating: 4 stars4 stars4 stars4 stars4 stars / 36
    2004-06-21

    Table of Contents:
  • DHTML Form Enhancement
  • Visual Appeal
  • Extensible Validation
  • Regex Validation and Equality Checking
  • Extending the validate function

  • 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


    DHTML Form Enhancement


    (Page 1 of 5 )

    There are few tools to speed up form development. This article illustrates simple ways to provide some basic enhancements to your web application's forms such as validation, automatic submission, and hilighting of the field in focus.

    Introduction

    Something that all of us have done once if not a thousand times is website form processing. For those of us who prefer not to use .NET generated JScript for our forms, there are few tools available to speed up form development. This typically means coming up with your own somewhat generic server-side form processing tools and quite possibly no tools for clientside form development. According to the latest stats, 92% of Internet users have scripting enabled in their browsers. This means you still need to validate data on the serverside, but the user experience can greatly be enhanced by providing validation and other enhancements to the form.

    It is implied that a form will be styled. Default form field style is quite unattractive and most always calls for some enhancement. The first thing we will discuss is simply making a form look nice. You should take a moment to consider the data that will be entered and fields and set their size attribute accordingly. Let's just take simple CSS like this:

    select, input, textarea {
     font-family: Verdana, Arial, Helvetica, sans-serif;
     font-size: 10px;
     background-color: #FFCF21;
     border: 1px solid #292C31;
    }
    select.selected, input.selected, textarea.selected {
     background-color: #FFFFFF;
    }

    You should also take advantage of the maxlength attribute to prevent users from putting too much data in a form. This will save some time with clientside validation. You should order the fields in as meaningful a way as possible with the fields organized in the form area neatly. With these things in mind, we will move on to some scripting.

    More HTML Articles
    More By David Fells


     

    HTML ARTICLES

    - Comparing Browser Response to Active Client ...
    - Testing Browser Response to Active Client Pa...
    - Active Client Pages: Completing the Code for...
    - ACP and Browsers: Setting up an Example
    - How Browsers Respond to Active Client Pages
    - Completing a Tree with Active Client Pages
    - HTML Form Verification and ACP
    - Building an ACP Tree
    - Completing an ACP 3D HTML Table Image Gallery
    - Building an ACP 3D HTML Table Image Gallery
    - A Multiple Page Image Gallery with Active Cl...
    - Building an Image Gallery with Active Client...
    - Concluding a Menu for All Browsers
    - A Vertical Menu for All Browsers
    - Downloading Long HTML Pages with ACP







    © 2003-2009 by Developer Shed. All rights reserved. DS Cluster 2 Hosted by Hostway
    Stay green...Green IT