aspose file tools*
The moose likes HTML, CSS and JavaScript and the fly likes Validation of Long Forms Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Java 8 in Action this week in the Java 8 forum!
JavaRanch » Java Forums » Engineering » HTML, CSS and JavaScript
Bookmark "Validation of Long Forms" Watch "Validation of Long Forms" New topic
Author

Validation of Long Forms

jim Murrell
Greenhorn

Joined: Mar 10, 2005
Posts: 2
Hi,
I'm very new to javascript. I recently developed a very long form (100 variables) from which I am using PHP to gather the data and write into a file for SAS processing. I downloaded several javascript validation functions and they all take an extremly long length of time due to the large number of variable being checked. Does anyone know of a quick way that I can segment the survey so that can I present and validate smaller chunks of the survey before submitting the final form. Right now, all validation is done after the user clicks SUBMIT for the entire form.

Thanks,
Jim Murrell
Eric Pascarello
author
Rancher

Joined: Nov 08, 2001
Posts: 15376
    
    6
What are you checking for exactly? Are they all text boxes?

Eric
jim Murrell
Greenhorn

Joined: Mar 10, 2005
Posts: 2
Eric,
The forms are largely radio buttons. There are a few checkboxes and text boxes. Most are simply validation to make sure that an item from each question is checked.

Thanks,
Jim Murrell
Eric Pascarello
author
Rancher

Joined: Nov 08, 2001
Posts: 15376
    
    6
I will finish up a blog I have been working on and have it posted tonight or tomorrow morning. Talks about a simple validation script and how to build it.

Eric
Eric Pascarello
author
Rancher

Joined: Nov 08, 2001
Posts: 15376
    
    6
See if this script helps: http://radio.javaranch.com/pascarello/2005/03/13/1110691820972.html

Eric
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Validation of Long Forms
 
Similar Threads
JavaScript disabled
struts validator
For struts form validation
Server-side Struts Validation
Navigation Problem, Please Help me