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. 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/
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/
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/ This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics |
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
|
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:
|
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...
|
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();">
|
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()">
| |
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...
|
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.
|
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
|
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...
|
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...
|
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,...
| |
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...
|
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...
|
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...
|
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...
|
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();...
|
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
| |
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...
| |