...

View Full Version : Help with window opener in different server



saxel
05-05-2004, 10:07 PM
I've a problem managing window, i've a main window, it open a child window, but it is in other server(php), when i try to retrieve a value in a parent window, it doesn't work,
the error in javaScript is:

Error: uncaught exception: Permission denied to access property

can anyone help me? i really apreciate any suggestion.

thanks in advance,

Roy Sinclair
05-05-2004, 10:27 PM
You'll never get this to work when both pages aren't on the SAME server. It's a security thing, accessing pages from a different server would allow for cross-site scripting which is a major no-no on the web.

glenngv
05-06-2004, 04:14 AM
What you can do is pass the needed data in the URL as querystring when you open the child window.

Roy Sinclair
05-06-2004, 03:36 PM
What you can do is pass the needed data in the URL as querystring when you open the child window.

The parent is trying to get a value from the child window, not send one to that window so that's not going to be an option in this case.

glenngv
05-07-2004, 02:40 AM
The parent is trying to get a value from the child window, not send one to that window so that's not going to be an option in this case.
Yes, but it could also mean the other way around.


i've a main window, it open a child window, but it is in other server(php), when i try to retrieve a value in a parent window, it doesn't work

Only saxel can clarify this.



EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum