PDA

View Full Version : IFrame Resize



progresst
06-14-2007, 02:45 PM
I absolutely love this iframe script and that it resizes but it appears to only work with files on the same domain. Is there anything out that with the same functionality that allows you to use content not on the same server?

http://www.dynamicdrive.com/dynamicindex17/iframessi2.htm

Thanks in advance!

Veronica
06-14-2007, 03:44 PM
Cross-domain security prevents JavaScript from accessing data from a different domain. You can link to a different domain in an iframe. But a resizing script needs to actually access data about the height of a page in order to work. Since it can't do that, resizing will only work if the pages are on the same domain.