Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Cold Fusion and JavaScript Form Submission Check

Status
Not open for further replies.

celley

Programmer
Jul 31, 2000
54
A2
I have a form that is created in cold fusion.&nbsp;&nbsp;When it is submitted, I am running an error check on the page that it is posted to to make sure all text boxes have been filled out.&nbsp;&nbsp;Not checking to see if the entered data is correct, but just to see that something was entered.&nbsp;&nbsp;I am running a loop to check this.&nbsp;&nbsp;<br><br>Here is my problem.... if Cold Fusion sees that one of the text boxes is empty, you have to go back and make the change.&nbsp;&nbsp;The only thing is, is that when you go back to make the changes.... all of the data is lost when it posted the first time.&nbsp;&nbsp;There is a lot of time spent in coding it to fill back out the data, and I was curious to see if there was a simple solution with JavaScript.<br><br>I want to find a script that will look through all of the text boxes on submission to see if they are filled out.&nbsp;&nbsp;I can write a code that will look at each individual box, but I was wondering if there was a way to loop through the boxes with something along the lines of a TabIndex.&nbsp;&nbsp;I want to save some time coding....<br><br>Thanks.
 
nevermind.... i found a solution in cold fusion using &lt;cfform&gt;.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top