2tcreative
Newbie
Posts: 1
Registered: 2/3/2003
Member Is Offline
|
| posted on 2/3/2003 at 03:44 PM |
|
|
Simular to Lila's request on 8/2002
I have followed the instructions for placement of the calendar.html page. The calendar2.js is in a javascript directory off the root, /js, and my
calling page is in another directory off the root, /html. If I keep calendar.html in the same directory as the calling page I have no problem
displaying the calendar, or scrolling thru multiple months or years.
However, when I move it to the root directory to make it common across several other directories and their calling pages (in other words to make one
calendar.html available to all for ease of maintenance), I can only display the first occurance of the page. When I try to scroll I get this msg:
Cannot find server...
The page cannot be displayed
The page you are looking for is currently unavailable. The Web site might be experiencing technical difficulties, or you may need to adjust your
browser settings.
Yet when I move it back to the same directory as the calling page no problem with scrolling...
What gives?
Here is my window.open code:
var obj_calwindow = window.open(
'../calendar.html?datetime=' + this.dt_current.valueOf()+ '&id=' + this.id,
'Calendar', 'width=200,height='+(this.time_comp ? 215 : 190)+
',status=no,resizable=no,top=400,left=500,dependent=yes,alwaysRaised=yes'
);
|
|
|
tigra
Administrator
Posts: 1926
Registered: 6/17/2002
Location: US, CO
Member Is Offline
|
| posted on 2/4/2003 at 09:06 AM |
|
|
use absolute path (one starting with slash) when referring calendar.html
This question is already answered in the forum with more details.
|
|
|
|