SharePoint Stack Exchange is a question and answer site for SharePoint enthusiasts. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

When having an IFrame inside SharePoint 2010, scrollbars disappears under some cirumstances depending on window size and mouse position. If holding the mouse over the address bar while refreshing the page; All HTML content dissapears from the internet explorer window. The content appears again when moving the mouse slightly. The iframe also does not respond to attributes set on the html element. For example setting the scrolling attribute to srolling="yes" should always show scrollbar, but this has no effect. This occurs on both IE9/IE8 XP/Win7. We are doing some resizing of the iframe using JS based on the users screen resolution, this worked fine for SP2007. Anyone know of any known gotchas here?

My problem looks very similar to the one described here: .show() on IFrame-div with JQuery-ui causes IFrame SharePoint page load to fail

share|improve this question

Have you considered using the Page Viewer Web Part instead of an IFrame? This would allow you to add the pages from within the browser and would retain the functionality. Remember adding JS to a page affects the performance of that page and takes effect as the page is rendered.

share|improve this answer

I would take Lori's approach and use a Page Viewer Web Part. The PVWP is essentially an iFrame, but configurable within the web part framework.

What you're probably seeing is probably not necessarily an issue with an iFrame specifically, but more the issue of the fact that the iFrame has issues with cross-browser compatibility. Using a PVWP should solve these issues since it's compatible with all of the SP supported browsers (IE7/8/9, Firefox 3.6+, Safari 4.04+).

share|improve this answer
i wonder who and why would downvote such answer... maybe it's just that answers should be more independent and comments be submitted as comments... – Alexey Krasheninnikov May 24 '11 at 8:20
up vote 0 down vote accepted

Never really found out why. Scraped the masterpage and it just works with a new masterpage. Probably was some html errors.

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.