Click to See Complete Forum and Search --> : Problem with window.opener..


Amutha
12-05-2003, 03:51 AM
I have one parent window and child window.

I am accesing parents window's title and url using

window.opener.document.title;
and
window.opener.location;


If parent and child windows run in the same server, I don't have any issues accessing title and url. But I am facing some(Network) problem in accessing title and url from child window when parent and child windows run in two different physical servers.


I can put it in other way also..

I an facing problem when

parent window uses following url..
intrant.aa.com://bla/bla....

and

child window uses following url..
intranetab.bb.com://bla..



But I am getting proper result when parent and child window starts with same url say
intranet.aa.com://bla..


Please help me in solving this problem.....


Is there any dependency with server/url in javascript (window.opener)

Gollum
12-05-2003, 04:02 AM
I'm afraid this is one of the many JavaScript security restrictions. When two pages are from two different domains, no matter how related the windows are, the JavaScript inside each page will not be allowed to access anything from the other.

Amutha
12-05-2003, 04:14 AM
Thanks Gollum

Gollum
12-05-2003, 04:16 AM
You're welcome :cool: