HighDots Forums  

max call using onSubmit?

Javascript JavaScript language (comp.lang.javascript)


Discuss max call using onSubmit? in the Javascript forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
CharitiesOnline.co.uk
 
Posts: n/a

Default max call using onSubmit? - 09-27-2003 , 08:49 AM






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.





Reply With Quote
  #2  
Old   
Martin Honnen
 
Posts: n/a

Default Re: max call using onSubmit? - 09-27-2003 , 09:14 AM








CharitiesOnline.co.uk wrote:

Quote:
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;"

--

Martin Honnen
http://JavaScript.FAQTs.com/



Reply With Quote
  #3  
Old   
CharitiesOnline.co.uk
 
Posts: n/a

Default Re: max call using onSubmit? - 09-27-2003 , 10:09 AM



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','D escription','','R','Pictur
e','','R');checkFileUpload(this,'GIF,JPG,JPEG,BMP, PNG',false,'','','','','',
'','');return document.MM_returnValue">

Joe




"Martin Honnen" <Martin.Honnen (AT) t-online (DOT) de> wrote

Quote:

CharitiesOnline.co.uk wrote:

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;"

--

Martin Honnen
http://JavaScript.FAQTs.com/




Reply With Quote
  #4  
Old   
Martin Honnen
 
Posts: n/a

Default Re: max call using onSubmit? - 09-27-2003 , 10:11 AM





CharitiesOnline.co.uk wrote:

Quote:
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','D escription','','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.
--

Martin Honnen
http://JavaScript.FAQTs.com/



Reply With Quote
Reply




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.