This week's book giveaway is in the Big Data forum.
We're giving away four copies of Elasticsearch in Action and have Radu Gheorghe & Matthew Lee Hinman on-line!
See this thread for details.
The moose likes HTML, CSS and JavaScript and the fly likes Returning Value from popup window (cross domain) Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of Elasticsearch in Action this week in the Big Data forum!
JavaRanch » Java Forums » Engineering » HTML, CSS and JavaScript
Bookmark "Returning Value from popup window (cross domain)" Watch "Returning Value from popup window (cross domain)" New topic

Returning Value from popup window (cross domain)

Praveen Kumar

Joined: Sep 26, 2006
Posts: 22
Hi all,

I am trying to return values from popup window to parent window. The problem is, since both the windows are in different machines and due to which it is returning an 'access is denied' error when I try to use

opener.document.Form1.txtFullName.value = 'something';

How can I resolve this issue. When Both the windows are in same machine then at that time, I am not facing any problem with this statement.

Please help me in this issue.

Thanks in advance.

Praveen Kumar S.<br />SCJP 1.4<br />Score : 90%
Eric Pascarello

Joined: Nov 08, 2001
Posts: 15379
JavaScript has a same domain policy so there is nothing you can do when the windows are on seperate domains.

I agree. Here's the link:
subject: Returning Value from popup window (cross domain)