473,796 Members | 2,765 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

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 1804


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="funct ion1(); 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_e ditAction%>" method="post"
enctype="multip art/form-data" name="form1"
onSubmit="MM_va lidateForm('Cat egoryName','',' R','Description ','','R','Pictu r
e','','R');chec kFileUpload(thi s,'GIF,JPG,JPEG ,BMP,PNG',false ,'','','','','' ,
'','');return document.MM_ret urnValue">

Joe


"Martin Honnen" <Ma***********@ t-online.de> wrote in message
news:3f******** @olaf.komtel.ne t...


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="funct ion1(); 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_e ditAction%>" method="post"
enctype="multip art/form-data" name="form1"
onSubmit="MM_va lidateForm('Cat egoryName','',' R','Description ','','R','Pictu r
e','','R');chec kFileUpload(thi s,'GIF,JPG,JPEG ,BMP,PNG',false ,'','','','','' ,
'','');return document.MM_ret urnValue">


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
7215
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 the screen just gives a flash and it also alters the initial html code after the form tag, which seems really weird to me this is kind of long but pretty basic i think need some help please
4
2735
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 ... onclick="perform_search();"> where the perform_search function is defined as follows:
5
2694
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 function to verify the name fields, age, email and gender. My question is: if I create a function for each field like the code below, what would be the best way to organize the functions and call them? Would I need one main function and place...
2
6471
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 ... onSubmit="checkData();">
2
3922
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 trying to do like this: <body onkeydown="MyRedirect()">
1
4772
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 submit button on it. I want a client side validation function to run before submit. I have a server side event handler on the button that executes the necessary server side code. Sounds simple. Well, the problem is that once you put client side...
8
6851
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
1487
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
1944
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 true or false. I want to find a way to add my component's "onsubmit" event to the form without overwriting user-defined onSubmit() handlers or onsubmit events. Is there a really good way of doing this? The problem I've come across was if I add...
0
9673
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
9524
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
10449
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
10217
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
0
10003
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
1
7546
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 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 a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
6785
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
1
4114
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
3
2924
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.