File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes HTML, CSS and JavaScript and the fly likes Access denied even the same domain Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of Java Interview Guide this week in the Jobs Discussion forum!
JavaRanch » Java Forums » Engineering » HTML, CSS and JavaScript
Bookmark "Access denied even the same domain" Watch "Access denied even the same domain" New topic

Access denied even the same domain

Deepa More
Ranch Hand

Joined: May 22, 2006
Posts: 68
I am getting Error-Access is denied in IE. Child window for calendar is opened and when on change of say month/year try to write page content again, then getting this kind of error. Domain is same for both parent and child. And this error is not coming on each machine. What might be the problem?

Thanks in advance.
Eric Pascarello

Joined: Nov 08, 2001
Posts: 15385
same domain means can't have sub domain too.

What does: "try to write page content again" actually mean?

Deepa More
Ranch Hand

Joined: May 22, 2006
Posts: 68
When user clicks on Calendar button, First window is opened by, docCal is reference to that window's document object. Calendar body part is rendered by docCal.writeln(). Problem occurs whenever there is change in month/year, calendar body part is rendered again by docCal.writeln() where it gives Access is denied error. This doesn't came for the first time content is rendered and even doesn't came on all machines. I tried setting domain for this window before writing content, but it fails.
Is there any problem of browser's Internet options setting?
We are using IE version 6

Deepa More
Ranch Hand

Joined: May 22, 2006
Posts: 68
Error has gone when domain is changed to full name of that host.
For ex. for host, previously domain set was, now if I changed to, its working. I dont know why? Any idea?
Ben Souther

Joined: Dec 11, 2004
Posts: 13410

Yes, it needs to be the same domain. is not the same as

Java API J2EE API Servlet Spec JSP Spec How to ask a question... Simple Servlet Examples jsonf
Rob Hunter
Ranch Hand

Joined: Apr 09, 2002
Posts: 832
I have a 2 frames. Each is within the website (let's say) The first frame has the page in it and it's trying to set the second frame to have the page /anotherdirectory/htmlpage (the "anotherdirectory" is at the same level on the server as "somedirectory". It gives an "Access is Denied" error. Any ideas? Do I need to put the full path in? I don't want to do this since the site name could change at any time and relativity would be best. Any help would be much appreciated.

I agree. Here's the link:
subject: Access denied even the same domain
It's not a secret anymore!