in

SharePoint Blogs

The Best Place for SharePoint-related Blogs

kwanl's blog

Adjusting IFrame to fit content

On a recent project, we wanted to display content from another server in an IFrame. However, we wanted the content to seem "seamless" and not have any vertical scrollbars appear. I managed to get some Javascript to get the job done in a simple scenario but fails in the more compliated scenario we were dealing with.

The problem was that for the script to work, both servers must be in the same domain. The typical way you would do this is to have both web pages set their document.domain property to the same the parent domain. However, as I described in another post, this breaks the SharePoint dropdown menus. Our workaround was to make the height configurable, not an entirely satisfactiory solution but still not a show-stopper.

I will check if this problem has been corrected in V3.

Here's a similiar piece of work I found on another blog.
SharePoint Page Viewer: automatically adjust iFrame height

Comments

 

Ian Morrish said:

My version...

www.wssdemo.com/.../Post.aspx

Regards,

Ian

June 18, 2007 3:10 PM

Leave a Comment

(required )  
(optional )
(required )  
Add

Need SharePoint Training? Attend a SharePoint Bootcamp!

Posts (c) their respective authors. Everything else (c) 2007 SharePoint Experts