Re: validating a form that uses javascript
by "Keith D Sellars" <Keith(at)webgraffix.com>
|
| Date: |
Mon, 3 Feb 2003 23:30:46 -0500 |
| To: |
"Art Zoller Wagner" <art(at)zollerwagner.com>, <hwg-basics(at)mail.hwg.org> |
| References: |
S0026260871 markone |
| |
todo: View
Thread,
Original
|
|
Art,
I owe you one. It worked perfectly. I replaced all occurences of
document.temps. with document.forms[0]. and removed the name attribute of
the form and it still functions AND it validates.
Here is the URL: http://www.mortgageprepayment.com/mortgagecalculator.htm
This was the last remaining thing that did NOT validate. The site is
integrated with PayPal's shopping cart service and automatically generates a
username and password to allow a single instance download of a purchased
file to the user upon succesful completion of a paypal purchase. We just
redesigned the look of the site and I'm validating everything we design or
redesign now (haven't done this in the past). Needless to say it is a true
learning experience for me, but I feel much better about the site when I
know that each page validates.
Thanks for the help. Javascript is not my strong point. I contribute
answers to the lists whenever I am able in many other areas like php, basic
design, databases, etc. People like you make me proud to be part of this
type of organization/group (hope I don't sound too "mushy", just wanted to
say "thanks").
Thanks,
Keith D Sellars
WebGraffix
www.webgraffix.com
"Making database sites seem easy"
----- Original Message -----
From: "Art Zoller Wagner" <art(at)zollerwagner.com>
To: "Keith D Sellars" <Keith(at)webgraffix.com>; <hwg-basics(at)mail.hwg.org>
Sent: Monday, February 03, 2003 8:17 PM
Subject: Re: validating a form that uses javascript
> Keith,
>
> To be clear, you wrote:
> The javascript has several lines that refer to the "document.temp" similar
> to the following line:
> document.temps.AI.value / 12;
>
> You can take "name=temps" out of the form tag, and replace the line above
> with:
> document.forms[0].AI.value / 12;
>
> Let us know if that works.
>
> Best wishes, Art
>
>
>
HTML: hwg-basics mailing list archives,
maintained by Webmasters @ IWA
This page is part of a preserved archive of archives.hwg.org. The site is no longer active and its content is not maintained. For enquiries about this archive, write to archive(at)iwanet.org.