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

If I already have a sub that intera

Status
Not open for further replies.

BigDoug

IS-IT--Management
Feb 20, 2002
49
US
If I already have a sub that interacts with a form, can I have another sub interact with the same form? I have two subs that I want to run that need to work with the same form on the screen. Is that possible? I think it is probably not, but I can hope.
 
depending on the subs(functions) and what they do, you could either simply declare both functions, one after the other, or you could create a parent function the contains/runs the two in question.

glenn
 
I am a newbie to Js, so could you point me in the right direction? Here is my current code:
Code:
<FORM METHOD=POST ACTION=&quot;<!--GLOBAL::script_dir_url-->/doreg.pl&quot; name=&quot;agreeform&quot; onSubmit=&quot;return defaultagree(this)&quot;>

And I need to call another function to do some validation of form fields. Can you give me an example how to add to this code for another function call?
 
Try:

onSubmit=&quot;return (defaultagree(this) && otherformvalidationfunction(this))&quot;>
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top