[thelist] Javascript help please?

Herzog, Ari Ari_Herzog at Instron.com
Mon Nov 20 09:19:42 CST 2000


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




More information about the thelist mailing list