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

Cross Domain Scripting Issue-Java script

Priya Chawla
Greenhorn

Joined: Jul 26, 2006
Posts: 2
In JSP
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
Marshal

Joined: Mar 22, 2005
Posts: 41525
    
  53
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.


Ping & DNS - my free Android networking tools app
Jeanne Boyarsky
internet detective
Marshal

Joined: May 26, 2003
Posts: 30309
    
150

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


[Blog] [JavaRanch FAQ] [How To Ask Questions The Smart Way] [Book Promos]
Blogging on Certs: SCEA Part 1, Part 2 & 3, Core Spring 3, OCAJP, OCPJP beta, TOGAF part 1 and part 2
Eric Pascarello
author
Rancher

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

Eric
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: Cross Domain Scripting Issue-Java script