Web Wiz - Green Windows Web Hosting

  New Posts New Posts RSS Feed - Is there a Java doctor in the house?
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

Topic ClosedIs there a Java doctor in the house?

 Post Reply Post Reply
Author
betheball View Drop Down
Newbie
Newbie


Joined: 28 April 2002
Location: United States
Status: Offline
Points: 15
Direct Link To This Post Topic: Is there a Java doctor in the house?
    Posted: 26 August 2003 at 8:12pm
If there happens to be a javascript expert, could you please look at this form and tell me why my jscript form validation script is not working.  Virtually every field is supposed to be a required field, but the form will submit blank.  Here is the link: http://www.axis-one.com/NewWeb/Register2.asp
Back to Top
KCWebMonkey View Drop Down
Senior Member
Senior Member
Avatar
Go Chiefs!

Joined: 21 June 2002
Status: Offline
Points: 1319
Direct Link To This Post Posted: 26 August 2003 at 8:21pm

change this: 

<form method="POST" action="Register4.asp" onSubmit="return Validator(theForm)" language="Javascript">

to this:

<form method="POST" action="Register4.asp" onSubmit="return Validator(this);" language="Javascript">

Back to Top
betheball View Drop Down
Newbie
Newbie


Joined: 28 April 2002
Location: United States
Status: Offline
Points: 15
Direct Link To This Post Posted: 26 August 2003 at 9:13pm
Why didn't I post this question 6 hours ago?  Maybe then my head wouldn't be throbbing like it is right now. Why doesn't the name in the() have to be the same in the name of the function and when the function is called after the onSubmit action???  It seemed to me if the function was declared like this:

function Validator(theForm)

Then then when called with the onSubmit is would also be

onSubmit="return Validator(theForm)"

I am so confused. But thanks for the answer

Back to Top
KCWebMonkey View Drop Down
Senior Member
Senior Member
Avatar
Go Chiefs!

Joined: 21 June 2002
Status: Offline
Points: 1319
Direct Link To This Post Posted: 26 August 2003 at 10:35pm
don't know for sure, but i do know that when you put Validator(this) in it tells the script to check "this" form...
Back to Top
Diep-Vriezer View Drop Down
Senior Member
Senior Member
Avatar

Joined: 06 August 2003
Location: Netherlands
Status: Offline
Points: 831
Direct Link To This Post Posted: 04 September 2003 at 2:59pm
Or, give the form a name, like name="theForm".
Gone..
Back to Top
 Post Reply Post Reply

Forum Jump Forum Permissions View Drop Down

Forum Software by Web Wiz Forums® version 12.08
Copyright ©2001-2026 Web Wiz Ltd.


Become a Fan on Facebook Follow us on X Connect with us on LinkedIn Web Wiz Blogs
About Web Wiz | Contact Web Wiz | Terms & Conditions | Cookies | Privacy Notice

Web Wiz is the trading name of Web Wiz Ltd. Company registration No. 05977755. Registered in England and Wales.
Registered office: Web Wiz Ltd, Unit 18, The Glenmore Centre, Fancy Road, Poole, Dorset, BH12 4FB, UK.

Prices exclude VAT at 20% unless otherwise stated. VAT No. GB988999105 - $, € prices shown as a guideline only.

Copyright ©2001-2026 Web Wiz Ltd. All rights reserved.