Home Articles FAQs XREF Games Software Instant Books BBS About FOLDOC RFCs Feedback Sitemap

BBS: still getting a NS 4 error... - August 22, 1998 at 08:59:09

You are here: irt.org | BBS | still getting a NS 4 error... [This BBS is closed]

Posted by Ryan on August 22, 1998 at 08:59:09:

I made a post about this yesterday. Everyone suggested that I change the name of my form to something other than "FORM" and the name of the text box to something other the "NAME" so I did. The script still doesn't run properly in Netscape 4. The error says something about document.theform having no properties.

I run banner advertisements for The Common Wealth Network on my site. The
script I am having troubles with may seem unnecessary, but it was written by
myself to save time (if I explained it would probably confuse everyone
reading). It's a simple script that uses document.write to write HTML code
for the banners. The code works in IE 4 and Netscape 3, but not in Netscape
4. If anyone knows how to correct this code so it works in Netscape 4
please let me know.

To see the error in action go to http://each.mircx.com with Netscape 4.

<FORM NAME="theform">
<INPUT TYPE="hidden" NAME="thename" VALUE="home">

<script language="javascript">
document.write ("")
if (document.theform.thename.value=="home") {
document.write ('<a href="http://commonwealth.riddler.com/Commonwealth/bin/statthru?333033">');
document.write ('<img src="http://commonwealth.riddler.com/Commonwealth/bin/statdeploy?333033" ISMAP>');
document.write ("</a>");

Thanks a lot!!

You are here: irt.org | BBS | still getting a NS 4 error... [This BBS is closed]

©2018 Martin Webb