frames and multiple websites question

Please note that official support for this menu version has now ceased. There are still plenty of users, though, and the forum is still running. Some of our long-time users may be able to help you out.
Post Reply
saladpuncher
Beginner
Beginner
Posts: 8
Joined: Sun May 19, 2002 8:23 pm

frames and multiple websites question

Post by saladpuncher »

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
shfoo13
Beginner
Beginner
Posts: 2
Joined: Wed Aug 14, 2002 11:12 am

Post by shfoo13 »

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.
User avatar
Andy
Milonic
Milonic
Posts: 3308
Joined: Sun May 19, 2002 8:23 pm
Location: Menu Developer
Contact:

Post by Andy »

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
saladpuncher
Beginner
Beginner
Posts: 8
Joined: Sun May 19, 2002 8:23 pm

Post by saladpuncher »

Thanks for the response. We found a solution by using inline frames. You can control the contents of an inline frame even if you don't own the web it is pointing to.
-Damon
Post Reply