tim042849
Junior Member
Posts: 6
Registered: 1/20/2006
Location: Palmer, Alaska
Member Is Offline
|
| posted on 5/22/2006 at 02:24 PM |
|
|
Permission denied to get property Window.calendars
Hi:
I am getting the following error message:
Error: uncaught exception: Permission denied to get property Window.calendars
from calendar.html
This was worked just fine from my desktop, but from a remote
URL fails.
You may view the document as is at:
http://www.johnsons-web.com/calendar.html
I don't recall making any changes to it.
This error message is not generated when calendar.html as access from the URL above, but occurs when running as javascript.
Any ideas?
thanks
tim
|
|
|
tigra
Administrator
Posts: 1982
Registered: 6/17/2002
Location: US, CO
Member Is Offline
|
| posted on 5/22/2006 at 03:23 PM |
|
|
what's the URL of the page that calls the calendar?
|
|
|
tim042849
Junior Member
Posts: 6
Registered: 1/20/2006
Location: Palmer, Alaska
Member Is Offline
|
| posted on 5/22/2006 at 04:03 PM |
|
|
| Quote: | Originally posted by tigra
what's the URL of the page that calls the calendar? |
http://www.wabo.biz/cgi-bin/py/kbListing.py/
:-) I'm having a (slight) epiphany ....
that url is password protected.
Is that why?
|
|
|
tigra
Administrator
Posts: 1982
Registered: 6/17/2002
Location: US, CO
Member Is Offline
|
| posted on 5/22/2006 at 04:05 PM |
|
|
yes, that's password protected. If you want us to investigate the problem please submit a support ticket providing login information.
|
|
|
tim042849
Junior Member
Posts: 6
Registered: 1/20/2006
Location: Palmer, Alaska
Member Is Offline
|
| posted on 5/22/2006 at 04:25 PM |
|
|
| Quote: | Originally posted by tigra
yes, that's password protected. If you want us to investigate the problem please submit a support ticket providing login information.
|
Thanks for the quick reply.
Let me first ask you:
Do you think that the password protection is causing the problem?
regards
tim
|
|
|
tigra
Administrator
Posts: 1982
Registered: 6/17/2002
Location: US, CO
Member Is Offline
|
| posted on 5/22/2006 at 06:12 PM |
|
|
Most likely. The calendar doen't know the password and it will not login anyway so it probably just can't pull its parts from the password protected
area.
|
|
|
tim042849
Junior Member
Posts: 6
Registered: 1/20/2006
Location: Palmer, Alaska
Member Is Offline
|
| posted on 5/22/2006 at 06:28 PM |
|
|
| Quote: | Originally posted by tigra
Most likely. The calendar doen't know the password and it will not login anyway so it probably just can't pull its parts from the password protected
area. |
I had the sysadmin deactivate the password protection. We still have the same error message.
It does not appear that the password is the problem.
FYI: calendar2.js and calendar.html are in the same directory and have the same permissions
(644) and same ownership.
Let me see if I can follow this:
an array named 'calendars' is initialized when the calendar2.js module is sourced.
If I'm correct about that, then this is the component of 'opener' which is denied permissions to
the script in calendar.html.
What would cause that?
Second question:
What is the logic of the following code:
var obj_caller = (window.opener ? window.opener.calendars[num_id] : null);
If I further understand the functionality I might be able to enable a workaround.
thanks
tim
|
|
|
tigra
Administrator
Posts: 1982
Registered: 6/17/2002
Location: US, CO
Member Is Offline
|
| posted on 5/22/2006 at 06:36 PM |
|
|
It doesn't matter where calendar2.js is. What matters is the location of the HTML document hosting the calendar relatively to calendar.html Both HTML
files must be in the same domain and calendar.html should not be password protected.
If you want us to investigate the problem then give the URL of the page where the problem can be reprodiced.
|
|
|
tim042849
Junior Member
Posts: 6
Registered: 1/20/2006
Location: Palmer, Alaska
Member Is Offline
|
| posted on 5/22/2006 at 06:51 PM |
|
|
| Quote: | Originally posted by tigra
It doesn't matter where calendar2.js is. What matters is the location of the HTML document hosting the calendar relatively to calendar.html Both HTML
files must be in the same domain and calendar.html should not be password protected.
If you want us to investigate the problem then give the URL of the page where the problem can be reprodiced. |
Understood. I will relocate calendar.html to the same domain as the host document and try again. Time doesn't permit me to test further today. Will
test tomorrow and report results.
Thank you very much for the help and advice.
Talk to you tomorrow.
Regards
Tim
|
|
|
tim042849
Junior Member
Posts: 6
Registered: 1/20/2006
Location: Palmer, Alaska
Member Is Offline
|
| posted on 5/23/2006 at 09:51 AM |
|
|
Hi tigra:
Per your instructions I relocated calendar.html to the same domain as the host document.
Success!
Thank you very much for your prompt and clear instructions.
And bye the way: good work too!
Regards
Tim
|
|
|
karthikte18
Junior Member
Posts: 3
Registered: 5/26/2006
Location: bangalore
Member Is Offline
|
| posted on 6/7/2006 at 03:43 AM |
|
|
window.calendars in javascript
Hi i have the following line in the code
if (!window.calendars)
window.calendars = new Array()
also
window.calendars[obj.name] = obj;
window.calendars[window.calendars.length] = obj;
i am not getting sufficient help on this.. can anyone help me understanding this code and how it works.
also about window.calendars
Regards
karthik.k
|
|
|
gbao2
Newbie
Posts: 1
Registered: 8/27/2006
Member Is Offline
|
| posted on 8/27/2006 at 11:51 PM |
|
|
Hi,
I am having a similar problem with this line
var obj_caller = (window.opener ? window.opener.calenders[num_id] : null);
I tried accessing this page from 2 machines: one does not encounter any problem, while the other hits "permission denied". Both the calendar.html
and caller page are in the same domain. Both the 2 machines that i tried are also in the same domain. Only difference is the machine that is
error-free is running on IE6.0 SP1 while the one with error runs on IE6.0 SP2. But I don't think this is the cause.
Does anyone has any idea what is the problem? Thanx in advance for any help.
|
|
|