/    Sign up×
Community /Pin to ProfileBookmark

Help! Got Permission Denied error

In my html pages, I have a frameset which contains 2 frames. All pages are from the same domain – I have verified this by doing alert(document.domain) in each frame.

However, when loading a new page into one of the frame, I got permission denied error at the line of code in the new page’s onload event handler:
top.callUnload = false;

callUnload is a boolean variable defined in the top window.

For debugging purpose, I also verified that my IE security settings are low enough to allow cross-domain scripting. But that does not resolve the permission denied issue.

To make this more weird, this problem only happens for one of my servers. This problem does not occur on a different web server. Any idea about what configuration in the apache web server might cause this? How can I get rid of this error? I am totally lost now.

Thanks a million!!

to post a comment
JavaScript

3 Comments(s)

Copy linkTweet thisAlerts:
@phpnoviceJun 28.2006 — First, a question... You say you verified that the domains are all the same. However, I have experienced that it is not just the domain that must be the same but also the same sub-domain (or, whatever it's called). In other words, the following have also caused cross-domain scripting errors:

my.domain.com

web.domain.com

intra.domain.com
Copy linkTweet thisAlerts:
@jianjianfengauthorJun 29.2006 — phpnovice, thanks for your reply.

The sub-domains are also the same: the lines printed out by alert(document.domain) are exactly the same for the top frame and the child frame.

I am running out of ideas. Any advice? Thanks.
Copy linkTweet thisAlerts:
@phpnoviceJun 29.2006 — You're correct. ? I'm running out of ideas, too. Got a live link and instructions on how to duplicate the problem?
×

Success!

Help @jianjianfeng spread the word by sharing this article on Twitter...

Tweet This
Sign in
Forgot password?
Sign in with TwitchSign in with GithubCreate Account
about: ({
version: 0.1.9 BETA 5.12,
whats_new: community page,
up_next: more Davinci•003 tasks,
coming_soon: events calendar,
social: @webDeveloperHQ
});

legal: ({
terms: of use,
privacy: policy
});
changelog: (
version: 0.1.9,
notes: added community page

version: 0.1.8,
notes: added Davinci•003

version: 0.1.7,
notes: upvote answers to bounties

version: 0.1.6,
notes: article editor refresh
)...
recent_tips: (
tipper: @AriseFacilitySolutions09,
tipped: article
amount: 1000 SATS,

tipper: @Yussuf4331,
tipped: article
amount: 1000 SATS,

tipper: @darkwebsites540,
tipped: article
amount: 10 SATS,
)...