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: Permission denied to get property Window.calendars
tim042849
Junior Member

Posts: 6
Registered: 1/20/2006
Location: Palmer, Alaska
Member Is Offline
posted on 5/22/2006 at 02:24 PM Reply With Quote
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
View User's Profile View All Posts By User U2U Member
tigra
Administrator

Posts: 2049
Registered: 6/17/2002
Location: US, CO
Member Is Offline
posted on 5/22/2006 at 03:23 PM Reply With Quote

what's the URL of the page that calls the calendar?
View User's Profile View All Posts By User U2U Member
tim042849
Junior Member

Posts: 6
Registered: 1/20/2006
Location: Palmer, Alaska
Member Is Offline
posted on 5/22/2006 at 04:03 PM Reply With Quote

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?
View User's Profile View All Posts By User U2U Member
tigra
Administrator

Posts: 2049
Registered: 6/17/2002
Location: US, CO
Member Is Offline
posted on 5/22/2006 at 04:05 PM Reply With Quote

yes, that's password protected. If you want us to investigate the problem please submit a support ticket providing login information.
View User's Profile View All Posts By User U2U Member
tim042849
Junior Member

Posts: 6
Registered: 1/20/2006
Location: Palmer, Alaska
Member Is Offline
posted on 5/22/2006 at 04:25 PM Reply With Quote

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
View User's Profile View All Posts By User U2U Member
tigra
Administrator

Posts: 2049
Registered: 6/17/2002
Location: US, CO
Member Is Offline
posted on 5/22/2006 at 06:12 PM Reply With Quote

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.
View User's Profile View All Posts By User U2U Member
tim042849
Junior Member

Posts: 6
Registered: 1/20/2006
Location: Palmer, Alaska
Member Is Offline
posted on 5/22/2006 at 06:28 PM Reply With Quote

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
View User's Profile View All Posts By User U2U Member
tigra
Administrator

Posts: 2049
Registered: 6/17/2002
Location: US, CO
Member Is Offline
posted on 5/22/2006 at 06:36 PM Reply With Quote

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.
View User's Profile View All Posts By User U2U Member
tim042849
Junior Member

Posts: 6
Registered: 1/20/2006
Location: Palmer, Alaska
Member Is Offline
posted on 5/22/2006 at 06:51 PM Reply With Quote

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
View User's Profile View All Posts By User U2U Member
tim042849
Junior Member

Posts: 6
Registered: 1/20/2006
Location: Palmer, Alaska
Member Is Offline
posted on 5/23/2006 at 09:51 AM Reply With Quote

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
View User's Profile View All Posts By User U2U Member
karthikte18
Junior Member

Posts: 3
Registered: 5/26/2006
Location: bangalore
Member Is Offline
posted on 6/7/2006 at 03:43 AM Reply With Quote
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
View User's Profile View All Posts By User U2U Member
gbao2
Newbie

Posts: 1
Registered: 8/27/2006
Member Is Offline
posted on 8/27/2006 at 11:51 PM Reply With Quote

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.
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