dusher
Junior Member
Posts: 6
Registered: 3/20/2007
Member Is Offline
|
| posted on 3/20/2007 at 08:28 PM |
|
|
Absolute path in calendar2.js not working
I have
1. the calling perl in /share/cgi-bin/calendar/
2. calendar2.js and calendar.html in /share/htdocs/datepicker
In the perl, my header is calling for the script in /htdocs/datepicker:
<!-- Calendar Date Picker mm/dd/yyyy -->
<script language="JavaScript" src="/datepicker/calendar2.js"></script>
In calendar2.js, I set an absolute path:
var obj_calwindow = window.open('/datepicker/calendar.html?datetime=' + this.dt_current.valueOf()+ '&id=' + this.id,
'Calendar', 'width=200,height='+(this.time_comp ? 215 : 190)+
',status=no,resizable=no,top=200,left=200,dependent=yes,alwaysRaised=yes'
);
The popup loads with no JS errors in the console, but I get a server error indicating it is looking for calendar.html in the cgi-bin dir
script not found or unable to stat: /var/www/cgi-bin/calendar/calendar.html
What can I do to get this to look for calendar.html in the /htdocs/datepicker dir?
Thank you!
|
|
|
dusher
Junior Member
Posts: 6
Registered: 3/20/2007
Member Is Offline
|
| posted on 3/21/2007 at 05:15 AM |
|
|
Never mind, I got it....
|
|
|
|