Kizito
Junior Member
Posts: 5
Registered: 12/15/2003
Member Is Offline
|
| posted on 12/15/2003 at 06:42 PM |
|
|
Calender cannot be displayed...
Hi?!!
I followed all the steps in coding the 'Javascript Calender-Demo' but when I try to invoke the calender it displays " The page cannot
be dispayed..." And this happen if I'm not connected to the internet. Ounce connected, click on cal.gif a search is automatically launched.
The searched file is my root folder. I think that something is wrong with the 'calender.html' file. Where should I save it? As it contains
one of the scripts how is it linked to the other files(Javascript Calender-Demo.htm & calender1.js) I've checked and re-checked all the
absolutes path name but...fail. something else when try to view the 'calender.html' in the browser it is displayed without the navigation
arrows(previous.gif, next.gif,...etc) what's wrong ? Any one to help me fix this ? I'm beginner in javascript...totally confused !!!
Thanks so much !
|
|
|
Kizito
Junior Member
Posts: 5
Registered: 12/15/2003
Member Is Offline
|
| posted on 12/16/2003 at 10:29 AM |
|
|
More attention in...
I couldn't believe it ! your stuff is very great !!! My mistake was naming the 'calendar.html' file
I saved it as 'calender.html' instead of 'calendar.html'. The function calling the 'calendar.html' file could not find
it in the root directory, so for that function the 'calendar.html' doesn't exist that's why the Pop up calendar window was
diplaying a message if I'm not online or automatically launch a search if online.(The calling function is in 'calendar*.js' file. See
it below...)
function cal_popup1 (str_datetime) {
this.dt_current = this.prs_tsmp(str_datetime ? str_datetime : this.target.value);
if (!this.dt_current) return;
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=200,left=200,dependent=yes,alwaysRaised=yes'
);
obj_calwindow.opener = window;
obj_calwindow.focus();
}
Now I realize that your coding is very correct and in case of any malfunction this is probably in naming the differents files or implementing the
code(changing names of components...etc) to fit our work. Attention should be payed with file names and component name changing...
Regards
|
|
|
Kizito
Junior Member
Posts: 5
Registered: 12/15/2003
Member Is Offline
|
| posted on 12/16/2003 at 10:31 AM |
|
|
More attention in...
I couldn't believe it ! your stuff is very great !!! My mistake was naming the 'calendar.html' file
I saved it as 'calender.html' instead of 'calendar.html'. The function calling the 'calendar.html' file could not find
it in the root directory, so for that function the 'calendar.html' doesn't exist that's why the Pop up calendar window was
diplaying a message if I'm not online or automatically launch a search if online.(The calling function is in 'calendar*.js' file. See
it below...)
function cal_popup1 (str_datetime) {
this.dt_current = this.prs_tsmp(str_datetime ? str_datetime : this.target.value);
if (!this.dt_current) return;
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=200,left=200,dependent=yes,alwaysRaised=yes'
);
obj_calwindow.opener = window;
obj_calwindow.focus();
}
Now I realize that your coding is very correct and in case of any malfunction this is probably in naming the differents files or implementing the
code(changing names of components...etc) to fit our work. Attention should be payed with file names...
Regards
|
|
|
|