473,378 Members | 1,507 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,378 software developers and data experts.

max call using onSubmit?

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.


Jul 20 '05 #1
3 1784


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/

Jul 20 '05 #2
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" <Ma***********@t-online.de> wrote in message
news:3f********@olaf.komtel.net...


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/

Jul 20 '05 #3


CharitiesOnline.co.uk wrote:
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/

Jul 20 '05 #4

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

1
by: bbxrider | last post by:
the onreset is working but problem somewhere in the onsubmit or the function it calls. i have abbreviated the called verfiy function for now just to get the basic onsubmit part working basically...
4
by: Kai Grossjohann | last post by:
I have two frames. Frame "search" contains a search form specifying an onsubmit action like so: <form ... onsubmit="foo();"> ... </form> The other frame contains a <img ......
5
by: Sue | last post by:
After finishing up my first quarter JavaScript on 12/12/03, I decided to improve character checking on my project. In my project I only had to do very basic validation. Therefore, I only had one...
2
by: Sean Dockery | last post by:
Which is the following is correct? a) <form ... onSubmit="return checkData()"> b) <form ... onSubmit="return checkData();"> c) <form ... onSubmit="checkData()"> d) <form ......
2
by: SteveSu | last post by:
Hi! I want to make a postback when the user hits the escape-button on the keyboard and redirect the user to another page. But the response.redirect does not work for me in this "context". I´m...
1
by: APA | last post by:
Well, I've figured out a way around this mess. I have no idea why it doesn't work the way I think it should but I do know how to get it to work. The scenario is that I have a form that has one...
8
by: Mark Livingstone | last post by:
I have a form that uses the following: onSubmit="some_var = 'validated';" FireFox is OK with that. Internet Explorer isn't. any ideas why? Thanks.
3
by: Olivia Towery | last post by:
I cannot figure out how to complete two script validations onsubmit. Only the first one listed runs. If anyone knows how to do this, please help. -- Olivia Towery
1
by: vunet | last post by:
I write a JS library component which is applied to every form on a webpage. The component does something before it submits the form. Now, let's say user has his own onSubmit() handlers returning...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.