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 Cross Domain Scripting Issue-Java script Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Engineering » HTML, CSS and JavaScript
Bookmark "Cross Domain Scripting Issue-Java script" Watch "Cross Domain Scripting Issue-Java script" New topic

Cross Domain Scripting Issue-Java script

Priya Chawla

Joined: Jul 26, 2006
Posts: 2
I Have a parent window with URL"https://abc/def" and i have a child window with URL "http://abc/xyz" .i want child window to access the parent window's elements but when i use window.opener property to set the values in parent window.i get an exception "Permission Denied".
i have done some R & D on this part and concluded that https cannot communicate with http as protocol are different .
Can anyone please provide me with solution to resolve this issue

Thanks in advance
Ulf Dittmer

Joined: Mar 22, 2005
Posts: 42965
I'm not sure what this has to do with JDBC (which is what this forum is about), but I don't think there is a solution. Definitely IE (not sure about other browsers) has considered a domain accessed over HTTP and HTTPS as two different domains. Could you access/xyz via HTTPS as well? Unless this is a very heavily used application the overhead of SSL should be manageable.
Jeanne Boyarsky
author & internet detective

Joined: May 26, 2003
Posts: 33098

Moving to our HTML and JavaScript since this is about opening windows.

[OCA 8 book] [Blog] [JavaRanch FAQ] [How To Ask Questions The Smart Way] [Book Promos]
Other Certs: SCEA Part 1, Part 2 & 3, Core Spring 3, TOGAF part 1 and part 2
Eric Pascarello

Joined: Nov 08, 2001
Posts: 15385
You will have to run both in https.

I agree. Here's the link:
subject: Cross Domain Scripting Issue-Java script
It's not a secret anymore!