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 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 Spring in Action this week in the Spring 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
Author

Returning Value from popup window (cross domain)

Praveen Kumar
Greenhorn

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

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

Eric
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: Returning Value from popup window (cross domain)