senop
05-13-2004, 03:01 AM
Hi I'm facing a problem to put my javascript in different pages.
I have 2 script for live aging calculation, 1 for counting the age of the user and another one to prepare countdown for their birthday. I've put both script in 2 different .asp file and I'm going to display the calculation in the same row but in different column of a table. Here are the problem coding lines:
<td width="199" valign="top" align="left" height="2" >
<div align="center">
<!--#include File="countup.asp" -->
<ilayer id="countupnsmain" width=&{countupwidth}; height=&{countupheight}; bgcolor=&{countupbgcolor}; visibility=hide onClick="setcountup(theyear,themonth,theday);start_countup();countup()">
<layer id="countupnssub" width=&{countupwidth}; height=&{countupheight}; left=0 top=0></layer>
</ilayer>
</div>
</td>
<td width="175" valign="top" align="left" height="2" >
<div align="center">
<!--#include File="countdown.asp" -->
<ilayer id="countdownnsmain" width=&{countdownwidth}; height=&{countdownheight}; bgcolor=&{countdownbgcolor}; visibility=hide onClick="setcountdown(theyear,themonth,theday);start_countdown();countdown()">
<layer id="countdownnssub" width=&{countdownwidth}; height=&{countdownheight}; left=0 top=0></layer>
</ilayer>
</div>
</td>
When I run the program, this error will show up:
Error Type:
Active Server Pages, ASP 0126 (0x80004005)
The include file 'countdown.asp' was not found.
/jf/generate1.asp, line 178
But the program can run if I do not place the countdown script in different page, means that the program can run if I write the script in the same page. Can somebody please help me/tell me what is wrong with my program
I have 2 script for live aging calculation, 1 for counting the age of the user and another one to prepare countdown for their birthday. I've put both script in 2 different .asp file and I'm going to display the calculation in the same row but in different column of a table. Here are the problem coding lines:
<td width="199" valign="top" align="left" height="2" >
<div align="center">
<!--#include File="countup.asp" -->
<ilayer id="countupnsmain" width=&{countupwidth}; height=&{countupheight}; bgcolor=&{countupbgcolor}; visibility=hide onClick="setcountup(theyear,themonth,theday);start_countup();countup()">
<layer id="countupnssub" width=&{countupwidth}; height=&{countupheight}; left=0 top=0></layer>
</ilayer>
</div>
</td>
<td width="175" valign="top" align="left" height="2" >
<div align="center">
<!--#include File="countdown.asp" -->
<ilayer id="countdownnsmain" width=&{countdownwidth}; height=&{countdownheight}; bgcolor=&{countdownbgcolor}; visibility=hide onClick="setcountdown(theyear,themonth,theday);start_countdown();countdown()">
<layer id="countdownnssub" width=&{countdownwidth}; height=&{countdownheight}; left=0 top=0></layer>
</ilayer>
</div>
</td>
When I run the program, this error will show up:
Error Type:
Active Server Pages, ASP 0126 (0x80004005)
The include file 'countdown.asp' was not found.
/jf/generate1.asp, line 178
But the program can run if I do not place the countdown script in different page, means that the program can run if I write the script in the same page. Can somebody please help me/tell me what is wrong with my program