Top > Javascript > Forms
Many websites, like thesitewizard.com, have a feedback form of some sort so that visitors can make comments to the webmasters. If you have such a form on your site, I'm sure that from time to time, you would have received the results of your form with some essential field (like the email address or the visitor's name, or even the feedback itself) omitted.
Category:
Date Added: Feb 26, 2007 Hits: 2 Rating: 0.00 Votes: 0 Price: Free
Member Reviews
Visitor Ratings
Google PR
This shows how to create a form that has a portion of the form shown (or hidden) upon certain user events. (radio button selection by the user in this example)
Category:
Date Added: Feb 26, 2007 Hits: 5 Rating: 0.00 Votes: 0 Price: Free
Member Reviews
Visitor Ratings
Google PR
JavaScript can take the contents of an HTML order form, process them, and display the order for verification even including the grand total! When the user confirms the order by clicking the button, the order is emailed to you by using freedback.com's free form processor cgi script. This script does take a bit of modification, but surely is worth it if you sell anything online.
Category:
Date Added: Feb 26, 2007 Hits: 4 Rating: 0.00 Votes: 0 Price: Free
Member Reviews
Visitor Ratings
Google PR
This shows another method to verify text boxes input and then put the focus into missing data boxes.
It also checks some things to see if the email is "valid" - other tests could be added as determine viable.
The alerts can be used, but they conflict with the focus thing going on
Category:
Date Added: Feb 26, 2007 Hits: 7 Rating: 0.00 Votes: 0 Price: Free
Member Reviews
Visitor Ratings
Google PR
Opens printer dialogue to print current page
Category:
Date Added: Feb 26, 2007 Hits: 4 Rating: 0.00 Votes: 0 Price: Free
Member Reviews
Visitor Ratings
Google PR
While JavaScript has significant advantages over validation on server it can not be completely relied upon since JavaScript might be disable on the user's computer or somebody might deliberately submit corrupted data to the server. So, the best solution is the combination of JavaScript since it is fast and it takes the load off the server and of a server-side script since it does not depend on user's software and therefore it can not be bypassed. To help realize this scheme, Smart Forms includes PHP script that performs exactly the same validation as JavaScript code.
Category:
Date Added: Feb 26, 2007 Hits: 1 Rating: 0.00 Votes: 0 Price: Free
Member Reviews
Visitor Ratings
Google PR
Use JavaScript to ensure that all elements of a form are properly filled out before they can be mailed to you. This definitely saves me from getting a lot of junk mail....
Category:
Date Added: Feb 26, 2007 Hits: 2 Rating: 0.00 Votes: 0 Price: Free
Member Reviews
Visitor Ratings
Google PR
A script that closely examines the content of a form box to ensure that the user entered a valid email address. If not, the form submition is canceled, and the surfer prompted to re-enter a valid address.
Category:
Date Added: Feb 26, 2007 Hits: 3 Rating: 0.00 Votes: 0 Price: Free
Member Reviews
Visitor Ratings
Google PR
Using client side JavaScript is an efficient way to validate the user input in web applications. When there are many fields in the form, the JavaScript validation becomes too complex.
Category:
Date Added: Feb 26, 2007 Hits: 2 Rating: 0.00 Votes: 0 Price: Free
Member Reviews
Visitor Ratings
Google PR
This example shows how to select all or none of the items in a select list.
All the items are shown (not a drop down list) only to show that they are all selected or none are selected.
Category:
Date Added: Feb 26, 2007 Hits: 2 Rating: 0.00 Votes: 0 Price: Free
Member Reviews
Visitor Ratings
Google PR
