Win a copy of The Java Performance Companion this week in the Performance forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Validation of Long Forms

 
jim Murrell
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 15385
6
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
What are you checking for exactly? Are they all text boxes?

Eric
 
jim Murrell
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 15385
6
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 15385
6
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
See if this script helps: http://radio.javaranch.com/pascarello/2005/03/13/1110691820972.html

Eric
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic