File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
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 Murach's Java Servlets and JSP this week in the Servlets 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
Author

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
author
Rancher

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

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

Eric
Deepa More
Ranch Hand

Joined: May 22, 2006
Posts: 68
When user clicks on Calendar button, First window is opened by window.open(), 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

Thanks
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 cmssds2.ab.company.com, previously domain set was company.com, now if I changed to cmssds2.ab.company.com, its working. I dont know why? Any idea?
Ben Souther
Sheriff

Joined: Dec 11, 2004
Posts: 13410

Yes, it needs to be the same domain.
http://www.mydomain.com is not the same as http://mydomain.com.


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: 815
I have a 2 frames. Each is within the website (let's say) www.website.com. The first frame has the page www.website.com/somedirectory/scriptname 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.

Rob
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Access denied even the same domain
 
Similar Threads
Child / Parent winow communication
JavaScript Permission Denied...sometimes
Child window accessing parent window error
Access Denied in IE
window.open Access is Denied error