Support Forum Softcomplex logo
About Us  | Services  | Download  | Order  | Support  | |
| Search | Today's Posts | Stats | Board Rules | Not logged in [ Login | Register ]
go to bottom
Last active: Never

Printable Version | Subscribe | Add to Favourites   Post new thread
Author: Subject: Absolute path in calendar2.js not working
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!
View User's Profile View All Posts By User U2U Member
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....
View User's Profile View All Posts By User U2U Member
Post new thread

Related Links:
Tigra Calendar
Product Demonstrations Live Demos
Free Download Free Download
Product Documentation Documentation
Support Forum Support Forum
 
Tigra Calendar PRO
Product Demonstrations Live Demos
Popup Calendar
Onpage Calendar
Modal Calendar
Product Documentation Documentation
Documenation Page
Change Log
Support Forum Technical Support
Support Forum
Customer Care System
Order Now ORDER NOW!
Add to Cart
View Cart
 

Go To Top


Powered by XMB 1.9.1 Nexus
Developed By Aventure Media & The XMB Group © 2002-2004