By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
459,575 Members | 1,395 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 459,575 IT Pros & Developers. It's quick & easy.

failing to get reference to form object in Firefox

P: n/a
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
Share this Question
Share on Google+
1 Reply


P: n/a
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 discussion thread is closed

Replies have been disabled for this discussion.