|
-
Jun 23rd, 2003, 05:02 AM
#1
Thread Starter
Fanatic Member
calling two functions from one form
Ive got two seperate form validation functions, they work seperatety fine, but i need to call both on the onsubmit of the form. ive tried but only the first function seems to be called.
onSubmit="return (Remove(q12,q14)&&ValidateForm(F_C_DAY.value,F_C_MONTH.value,F_C_YEAR.value));"
can anybody help please?
-
Jun 23rd, 2003, 05:18 AM
#2
Thread Starter
Fanatic Member
I cheated and called one of the functions from the onclick event of the button
-
Jun 23rd, 2003, 07:27 AM
#3
Why not call the second validation function from the first one. Or write a new function that will call those two validation functions.
Not sure if you use onclick event it will prevent the form from submiting if the validation returns false. have to check on that. But personally i would prefer the method i have mentioned earlier.
Danial
[VBF RSS Feed]
There is a great war coming. Are you sure you are on the right side? Atleast I have chosen a side.
If I have been helpful, Please Rate my Post. Thanks.
This post was powered by : 
-
Jun 23rd, 2003, 07:36 AM
#4
Thread Starter
Fanatic Member
Ideally that is what I would have done Danial but I copied the functions from elewhere and after a load of tinkering got them working for me. Im not a javascript expert and havent got the time to combine them. good suggestion though.
A return false on an onclick event will stop the form submission so this is an alright way to do it.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|