473,379 Members | 1,245 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,379 software developers and data experts.

failing to get reference to form object in Firefox

Hi,

I must be losing my mind -- I've forgotten how to get a reference to a
form! If you look at this page ...

http://www.dhlovelife.com/v2/knowdum...unity_post.php

I'm trying to submit the form after validating it. But, on PC
Firefox, I repeatedly get the error "f.submit is not a function" when
I try and submit the form using "f.submit()" where f is passed in from
the submit button, like so

<input type="button" value="Submit" name="submit"
onClick="validateForm(this.form);" />

Grateful for your help, - Dave
Jun 27 '08 #1
1 1257
laredotornado wrote:
Hi,

I must be losing my mind -- I've forgotten how to get a reference to a
form! If you look at this page ...

http://www.dhlovelife.com/v2/knowdum...unity_post.php

I'm trying to submit the form after validating it. But, on PC
Firefox, I repeatedly get the error "f.submit is not a function" when
I try and submit the form using "f.submit()" where f is passed in from
the submit button, like so

<input type="button" value="Submit" name="submit"
onClick="validateForm(this.form);" />

Grateful for your help, - Dave
Did you not think of searching Google for
javascript form validate

obviously not. Use an onsubmit handler in the form tag.
Jun 27 '08 #2

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

Similar topics

6
by: zzapper | last post by:
Hi, If I make a mistake designing a JavaScript Form Checker, ie get the name (or case) of a form Field wrong, JavaScript seems to default to immediately returning true and the form is submitted...
5
by: Hadean Dragon | last post by:
I'm trying to create a simple image gallery that has a floating image that popups up when the user clicks on a thumbnail. So far so good. Now, when I tried to align the popup image so it's near...
1
by: Greg | last post by:
I have code which creates a DataAdapter, and upddate command etc, and then finally does and update which fails. The error message which is returned is "Object Reference not set to an instance of...
4
by: CJ Taylor | last post by:
Hey all, I have a ASP.NET application running on Rainbow Portal, (the forums ahve been kinda useless). Anyways, I have a single control that for some reason whenever I hit the calculate...
8
by: wASP | last post by:
Hi, I'm having a problem referencing the elements within an object after a method of that object (a member function) has been activated with an onsubmit handler: - - - - - - - - ...
5
by: Steve JORDI | last post by:
Hi, I have a strange behavior when using IExplorer over FireFox. There is an html form that asks for the name of a city and has a dedicated field for that with a submit button next to it. In...
11
by: shankwheat | last post by:
I have a function which passes text from txtdebt to debtsbox which works fine. However, I want to add code which examines the value of debtsbox and if any of the values the user entered contain the...
2
by: Jeremy Kitchen | last post by:
I have inherited a project and I am trying to figure out why the failing units tests that exist fail. I a, getting the following error when I attempt serialization. Any advice on what I should...
11
by: dhtml | last post by:
(originally mis-posted on m.p.s.jscript...) I've just closed all windows in Firefox and its using 244MB of memory. I have no idea why. I had GMail open, a page from unicode, the CLJ FAQ. ...
0
by: ryjfgjl | last post by:
In our work, we often need to import Excel data into databases (such as MySQL, SQL Server, Oracle) for data analysis and processing. Usually, we use database tools like Navicat or the Excel import...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
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:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
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...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...

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.