NEW LISTINGS  HOT LISTINGS  TOP RATED  EDITOR PICK  ADD A LISTING  UPDATE A LISTING  GET RATED  UPGRADE A LISTING
  HOME     MY ACCOUNT     POWER SEARCH     REGISTER     MEMBER LIST     SUGGEST CATEGORY  

Browse a Listing

Subscribe to this category

Top > JavaScript > Tips and Tutorials > Forms

Popular Tags

Free Script links
Sort By :
Forms always require validation when they are used in not safe environments. One method is to verify the data submitted through POST or GET before actually executing the form action. Using Javascript it is possible to do this in a more simple way.
Category:

Write a Review   Add Favorite   Refer it to Friend   Report Broken Link  
Date Added: Oct 12, 2006 Hits: 26 Rating: 0.00 Votes: 0

Member Reviews Visitor Ratings Google PR

In forms when using text boxes or text areas with limited character length (usually needed for forms that submit data to a database) it is always a good idea to tell the user how many characters they have remaining. The following example shows how you can do this. This is a very simple and cute idea to help the user know exactly how many characters he can type further. Do these small add-ons to your forms and they will look really professional.
Category:

Write a Review   Add Favorite   Refer it to Friend   Report Broken Link  
Date Added: Oct 12, 2006 Hits: 6 Rating: 0.00 Votes: 0

Member Reviews Visitor Ratings Google PR

This little bit of JavaScript disables the submit button as soon as it is clicked for the first time and prevents the user sending their form multiple times. The script now also changes the word "submit" to "thanks" as an extra indication that the form has been sent.
Category:

Write a Review   Add Favorite   Refer it to Friend   Report Broken Link  
Date Added: Oct 12, 2006 Hits: 7 Rating: 0.00 Votes: 0

Member Reviews Visitor Ratings Google PR

I ran accross this code when working on a registration product site. The goal is to save the user's time by not having them fill in the same address over and over, if the address for there billing is the same as the mailing address.
Category:

Write a Review   Add Favorite   Refer it to Friend   Report Broken Link  
Date Added: Oct 12, 2006 Hits: 8 Rating: 0.00 Votes: 0

Member Reviews Visitor Ratings Google PR

Forms on the page are represented in JavaScript via the form object, and can be accessed in one of the 3 standard ways below:
Category:

Write a Review   Add Favorite   Refer it to Friend   Report Broken Link  
Date Added: Oct 12, 2006 Hits: 8 Rating: 0.00 Votes: 0

Member Reviews Visitor Ratings Google PR

However, the JavaScript confirm() method allows a user to cancel the submission of a form, based on an interactive alert from the browser. If the user decides not to submit the form, he or she can cancel the submission before the browser ever sends it across the network. In addition, this alert can even display the information that the user entered into the form to verify that it is correct. And the best part about it is that it's cross-browser and cross-platform compatible.
Category:

Write a Review   Add Favorite   Refer it to Friend   Report Broken Link  
Date Added: Oct 12, 2006 Hits: 3 Rating: 0.00 Votes: 0

Member Reviews Visitor Ratings Google PR

The most effective way to understand JavaScript's power is to apply it to forms. JavaScript lets your visitors complete your forms faster than using CGI (Common Gateway Interface). One of the problems with CGI is that when a user makes a mistake filling out a form, he or she has to wait for the server to return an error message. With JavaScript, this process is almost instantaneous. You can set up the form so that when the user clicks on the submit button, JavaScript will check to see if all the input is valid before it sends it to you or your server.
Category:

Write a Review   Add Favorite   Refer it to Friend   Report Broken Link  
Date Added: Oct 12, 2006 Hits: 1 Rating: 0.00 Votes: 0

Member Reviews Visitor Ratings Google PR

Move items from one menu to another by using two multiple-select menus. Make it easy to create a list, for example. I found this useful when creating a distribution list where I had a set of people available on one side and the list on the other.
Category:

Write a Review   Add Favorite   Refer it to Friend   Report Broken Link  
Date Added: Oct 12, 2006 Hits: 4 Rating: 0.00 Votes: 0

Member Reviews Visitor Ratings Google PR

The code below iterates through all forms skipping hidden and disabled elements and stops when it finds the first available form control:
Category:

Write a Review   Add Favorite   Refer it to Friend   Report Broken Link  
Date Added: Jan 4, 2007 Hits: 8 Rating: 0.00 Votes: 0

Member Reviews Visitor Ratings Google PR

Validate a text box for numeric data and disallow invalid characters in javascript.
Category:

Write a Review   Add Favorite   Refer it to Friend   Report Broken Link  
Date Added: Aug 6, 2007 Hits: 31 Rating: 0.00 Votes: 0

Member Reviews Visitor Ratings Google PR

Pages: 1 2 [Next >]

Category Jump :