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 strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Onsubmit Vs Onclick

Status
Not open for further replies.

Richey

Technical User
Aug 29, 2000
121
GB
I have inherited an ASP script, which includes lots of fancy javascript, which I don't understand and of course, the ******* thing doesn't work
I've tried lots of things, but I'm trying to go back to basics - so can someone answer the following

if you have <form> and </form> tags - if inbetween there you have
<form onClick = &quot;return validate()&quot; method = &quot;post&quot; action = &quot;register.asp&quot;>
if I change the onClick to OnSubmit do I need to alter any other code? or will it simply call the validation at a different time?

On my ASP script I have a Java validation setup called Validate - it worked for OnClick but not for OnSubmit

Regards
Jacq
 
definately check this out but...

You might need to make sure the button submitting the form is an actual type=submit button.

Also, I think there are differences in the way browsers handle the onSubmit event depending on whether it comes from a programmed event or an actual click event.

sorry I can't be of more help, but maybe this is a start.

Have Fun?
munkyCmunkyDU
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top