I am using an include file in my ASP page which contains JavaScript code to validate a date input field. If I leave the JavaScript code in-line on the ASP page everything works fine... but when I move the JavaScript code to another file and reference it via and INCLUDE file.... it doesnt work... basically it cannot find the function. Here is a simpified code example of what I am doing:
ASP PAGE:
<HTML><HEAD>
<!--#include file="DateValidation.js"-->
<BODY bgColor=#ffffff>
.
.
.
<INPUT name=Submit onclick="PrintHello();">
.
.
----------------------------------------------------------
INCLUDE FILE: (DateValidation.js)
<script language="JavaScript">
<!--
Function PrintHello(){
alert("HELLO"
}
//-->
</script>
Thanks in advance.
[sig][/sig]
ASP PAGE:
<HTML><HEAD>
<!--#include file="DateValidation.js"-->
<BODY bgColor=#ffffff>
.
.
.
<INPUT name=Submit onclick="PrintHello();">
.
.
----------------------------------------------------------
INCLUDE FILE: (DateValidation.js)
<script language="JavaScript">
<!--
Function PrintHello(){
alert("HELLO"
}
//-->
</script>
Thanks in advance.
[sig][/sig]