[thelist] Javascript help please?

Tab Alleman talleman at autobex.com
Mon Nov 20 09:27:03 CST 2000


You might actually need to replace "document.theForm" with
"document.forms[theForm]"

I think maybe.

-----Original Message-----
From: thelist-admin at lists.evolt.org
[mailto:thelist-admin at lists.evolt.org]On Behalf Of Herzog, Ari
Sent: Monday, November 20, 2000 10:20 AM
To: 'thelist at lists.evolt.org'
Subject: [thelist] Javascript help please?


I am having a strange problem with a form in both Netscape and IE.
I originally developed it for IE, without checking Netscape,
so now I am trying to fix my goof.

The form has Javascript validation, so if so many fields are empty
or not correct, a prompt appears when the "subscribe" button is pressed.
It works fine in IE...but not in Netscape. In Netscape, it fails to show
the prompt box and overlooks the JS validation code.

When I check the code in the Netscape Javascript
validator, it tells me the error is on line 126: theForm is not defined.

I was told by an acquaintance that the solution to the problem
is to replace any "theFrom" with "document.theForm" in the Javascript
(excepting the form tag of course).

I tried that, and then the validation failed in Netscape again, as well as
IE.

Here is the URL of the existing page:

http://www.instron.com/cgi-bin/newslettersignup.cfm

Any ideas??

Thanks alot,
Ari

---------------------------------------
For unsubscribe and other options, including
the Tip Harvester and archive of TheList go to:
http://lists.evolt.org Workers of the Web, evolt !





More information about the thelist mailing list