max call using onSubmit?

  • Thread starter CharitiesOnline.co.uk
  • Start date
C

CharitiesOnline.co.uk

Can anyone tell me, what is the maximum functions that you can call using a
form submit button with onSubmit ?
I am using 2 at present but really need to use 3 , how can I do this?
Thanks Joe.
 
M

Martin Honnen

CharitiesOnline.co.uk said:
Can anyone tell me, what is the maximum functions that you can call using a
form submit button with onSubmit ?
I am using 2 at present but really need to use 3 , how can I do this?

Why do you think there is a limit? Use
<form onsubmit="function1(); function2(); function3();
return true;"
 
C

CharitiesOnline.co.uk

Hello Martin,
I have tried that & it doesnt seem to work?

<form action="<%=MM_editAction%>" method="post"
enctype="multipart/form-data" name="form1"
onSubmit="MM_validateForm('CategoryName','','R','Description','','R','Pictur
e','','R');checkFileUpload(this,'GIF,JPG,JPEG,BMP,PNG',false,'','','','','',
'','');return document.MM_returnValue">

Joe
 
M

Martin Honnen

CharitiesOnline.co.uk said:
Hello Martin,
I have tried that & it doesnt seem to work?

<form action="<%=MM_editAction%>" method="post"
enctype="multipart/form-data" name="form1"
onSubmit="MM_validateForm('CategoryName','','R','Description','','R','Pictur
e','','R');checkFileUpload(this,'GIF,JPG,JPEG,BMP,PNG',false,'','','','','',
'','');return document.MM_returnValue">

I am sure you can call as many functions as you like, thus if "it
doesn't seem to work" then one of the functions causes an error, check
the JavaScript console.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
474,098
Messages
2,570,625
Members
47,237
Latest member
David123

Latest Threads

Top