PDA

View Full Version : Resizing Iframes while pulling a page from another server



xelalex24
04-27-2006, 11:28 PM
Hi All,

I was wondering if anyone could help me solve this issue. We created this databse that we would like to pull the main page into one of our client's website using iframe. We also would like to have the iframe resize itself. It seems that I have been able to find scripts to resize the iframe, but only if the file being pulled in sits on the same server.

I'm trying to prevent using a frameset, and wanted the easy ability of applying an iframe.

Any ideas?

Twey
04-27-2006, 11:56 PM
You can resize the iframe element no matter from whence its source page is coming.

jscheuer1
04-28-2006, 06:44 AM
You can resize the iframe element no matter from whence its source page is coming.

But doing so automatically on the basis of the size of the page being loaded into the iframe has always been a same domain only thing. I wrote a script to do this that runs mostly only on the loaded page but, since it does access the iframe on the parent, it has the same problem:

http://home.comcast.net/~jscheuer1/side/iframe_test.htm