I am doing a design on two sites. I'll call one http://www.domain1.com and the other http://www.domain2.com. Both of these sites are identical. We are using the menu in frames (one header frame and one body frame). In http://www.domain1.com we click on a menu selection in the header and the main frame goes to a page in http://www.domain2.com. Now when we try to select a menu from the header frame again (which is pointing to a page in domain1) and have it open a menu in the main frame (which is a page in domain2) we get a permission error. Both sites have menu set up on them and they both work as long as you dont go from one website to the other. Any suggestions. I suspect that the javascript wont work across domains (hence the permission error).
-saladpuncher
frames and multiple websites question
-
- Beginner
- Posts: 8
- Joined: Sun May 19, 2002 8:23 pm
I encounter the same problem too. The reason could be found at this link
http://developer.irt.org/script/1111.htm
Hope someone can post a work around for this. need help deserately.
http://developer.irt.org/script/1111.htm
Hope someone can post a work around for this. need help deserately.
Hi,
This is a security measure so that you can't edit pages inside a Frame taken from another web site.
You can do this with a PHP script by taking a snapshot of the other page, modify it and then dump it to the browser as a page from your own server.
I'll try and get a demo of this done later on.
Cheers
Andy
This is a security measure so that you can't edit pages inside a Frame taken from another web site.
You can do this with a PHP script by taking a snapshot of the other page, modify it and then dump it to the browser as a page from your own server.
I'll try and get a demo of this done later on.
Cheers
Andy
-
- Beginner
- Posts: 8
- Joined: Sun May 19, 2002 8:23 pm