Click to See Complete Forum and Search --> : Need help with iframe weirdness


Jongraphs
09-21-2008, 07:15 PM
Hello everyone, thanks for you great help in the past.

I'm working on this site http://www.amadimag.com/amadiweb/

I'm using code that dynamically resizes an iframe window to fit the content of the page it's looking at, thereby eliminating the scroll bar, and having the parent page scroll. However, the code does not work when the iframe page is on a different domain other than the parent page. It's like a security thing or something. It works beautifully when both pages are in the same place.

Here's where I got the code: http://www.dynamicdrive.com/dynamicindex17/iframessi2.htm

I need for this to work even though the 2 pages are on different domains. Is there a way? Thanks for any and all help.

gil davis
09-22-2008, 07:26 AM
I need for this to work even though the 2 pages are on different domains. Is there a way?Sorry, no. Once you navigate to a different domain, the browser will not let you use script. It is a security feature. :(

Jongraphs
09-22-2008, 07:30 AM
Thanks gil for your response.

Is there a way to include code in the iframed page to allow it to take on the properties of a page that is on the same domain? Basically tricking the code?

Or is there a way to code the iframed page to grant access to it from a different domain?

gil davis
09-22-2008, 09:14 AM
No, it has to all be on one domain.