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!

Javascript validation question

Status
Not open for further replies.

rtnMichael

Programmer
Aug 5, 2002
152
US
Hey guys, I have a list being generated from a previous page, with open text boxes for information needed to be input. How would I validate the text boxes after the "submit" button is pushed?

Thanks
Mike
 
using javascript. if u r looking for a script then a search in the javascript forum ought to yield better results. how far r u aquainted with JS?

Known is handfull, Unknown is worldfull
 
hi,
You can't validate your control after the page being posted to the server if u want to validate on push of submit button and before submitting the form so u can write ur function onsubmit event of form.like that
<form name=&quot;myform&quot; method=&quot;post&quot; onsubmit=&quot;checkall()&quot;>
</form>
I think this id the only solution.
KNOWLEDGE IS WORTHLESS UNTIL IT IS UNSHARED.


 
vbkris you're right, I might want to check out the Javascript forum, I just figured since I needed to incorporate ASP into it (because I don't know the actual size of the list until it's generated), this would be the better place to ask. As far as knowing JS, I have worked with it before, but not in validation of an unknown size form. I just need to probably run it through a loop of some sort in the JS, but also send into the validation code the amount of information to be validated, the number of variables to be checked.

Thanks bhoge for the button code, now I need to work on the JS for it.... :-D
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top