473,473 Members | 1,808 Online
Bytes | Software Development & Data Engineering Community
Create Post

Home Posts Topics Members FAQ

help -- OnSubmit not firing

The essential elements are shown below. Basically, when I press the SUBMIT
button, the checkFields() function isn't firing as I would expect. I've
tried adding ot to the button line like so: action = "checkFields()" but
that doesn't work either. Thanks.

Joe

<%@ Language=VBScript %>
<html>
<head>
<meta NAME="GENERATOR" Content="Microsoft Visual Studio 6.0">

script language="javascript">

function checkFields() {
....

}}

</script>
</head>
<body>
<
<form id="Form1" action="Subscribe.asp" method="post" onSubmit="return
checkFields()">
.....

<input id="Submit1" type="submit" value="Submit" name="Submit1">

</form></td>
</body>
</html>

--
Posted via NewsDemon.com - Premium Uncensored Newsgroup Service
------->>>>>>http://www.NewsDemon.com<<<<<<------
Unlimited Access, Anonymous Accounts, Uncensored Broadband Access
Feb 16 '06 #1
2 4487

"Joe Befumo" <jb*****@exotic-scales.com> wrote in message
news:43**********************@news.newsdemon.com.. .
The essential elements are shown below. Basically, when I press the SUBMIT
button, the checkFields() function isn't firing as I would expect. I've tried
adding ot to the button line like so: action = "checkFields()" but that
doesn't work either. Thanks.


Wrong NG

Try this - it works for me..
<script language="javascript">
function checkFields(theForm) {
...

}
</script>
<form id="Form1" action="Subscribe.asp" method="post" onSubmit="return
checkFields(this)">


Feb 16 '06 #2
thanks -- I'll give that a shot.

"Lee Carnell" <leexcarnell@gmailxcom> wrote in message
news:43**********************@news.aaisp.net.uk...

"Joe Befumo" <jb*****@exotic-scales.com> wrote in message
news:43**********************@news.newsdemon.com.. .
The essential elements are shown below. Basically, when I press the
SUBMIT button, the checkFields() function isn't firing as I would expect.
I've tried adding ot to the button line like so: action = "checkFields()"
but that doesn't work either. Thanks.


Wrong NG

Try this - it works for me..
<script language="javascript">
function checkFields(theForm) {
...

}
</script>
<form id="Form1" action="Subscribe.asp" method="post" onSubmit="return
checkFields(this)">


--
Posted via NewsDemon.com - Premium Uncensored Newsgroup Service
------->>>>>>http://www.NewsDemon.com<<<<<<------
Unlimited Access, Anonymous Accounts, Uncensored Broadband Access
Feb 16 '06 #3

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

Similar topics

4
by: Stuart Wexler | last post by:
Hi, I have a form with onSubmit embedded in the <form> tag. The form is submitted programatically through javascript . While the form submits fine, nothing I'm doing seems to get it to...
7
by: Mike | last post by:
I've been trying for the past week to put a simple code together. I have done a LOT of searching, found scripts showing the functions I would like to use, however when I mix them it all goes wrong,...
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: tim | last post by:
Hello All, I have a problem I have not been able to resolve with a webbased project I am working on for work (not fun). The scenario is this: I have a search that can take quite some time...
2
by: this one | last post by:
I have the following code <html> <head> <title>Untitled Document</title> <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1"> <script language="JavaScript"...
23
by: casper christensen | last post by:
Hi I run a directory, where programs are listed based on the number of clicks they have recieved. The program with most clicks are placed on top and so on. Now I would like people to be apple to...
2
by: Sorrow | last post by:
If you have an onsubmit event handler defined for a form, it doesn't seem to trigger if you manually call the .submit() method of the form object. Is there any way you can make sure that code is...
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.
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...
0
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,...
0
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,...
0
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...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
1
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...
0
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...
0
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The...
0
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
0
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 ...

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.