aspose 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


Win a copy of Soft Skills this week in the Jobs Discussion forum!
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: 42913
    
  68
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
Marshal

Joined: May 26, 2003
Posts: 31057
    
232

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
 
Consider Paul's rocket mass heater.
 
subject: Cross Domain Scripting Issue-Java script