Cybian
01-21-2002, 11:49 PM
Hello all! I have a quick and easy question. I have a form that will delete a record and confirms it with an easy strip of code. Now this has been working fine until someone has to use Netscape 4.7. I tried it with a workstation that uses NS4.0 and sure enough I got this error. The error is:
JavaScript Error:
http://my site/file_modify.cfm, line 79
TheForm is not defined.
Now the simpe javascript is as follows:
<CFIF action EQ "delete">
<SCRIPT LANGUAGE="JavaScript" TYPE="text/javascript">
<!--
function AreYouSure()
{
var msg = "___________________________________________\n\n" +
"You are about to delete this File.\n" +
"___________________________________________\n";
if (confirm(msg)) TheForm.submit();
else return false;
}
//-->
</SCRIPT>
</CFIF>
This looks perfectly fine to me. That is the forms names so what is with this error? Is it just another case of how Netscape 4.x can't handle javascript? Thanks in advance!
JavaScript Error:
http://my site/file_modify.cfm, line 79
TheForm is not defined.
Now the simpe javascript is as follows:
<CFIF action EQ "delete">
<SCRIPT LANGUAGE="JavaScript" TYPE="text/javascript">
<!--
function AreYouSure()
{
var msg = "___________________________________________\n\n" +
"You are about to delete this File.\n" +
"___________________________________________\n";
if (confirm(msg)) TheForm.submit();
else return false;
}
//-->
</SCRIPT>
</CFIF>
This looks perfectly fine to me. That is the forms names so what is with this error? Is it just another case of how Netscape 4.x can't handle javascript? Thanks in advance!



