You can make a difference in the Apple Support Community!

When you sign up with your Apple Account, you can provide valuable feedback to other community members by upvoting helpful replies and User Tips.

Looks like no one’s replied in a while. To start the conversation again, simply ask a new question.

Still no solution for iFrame scrolling

Hi,

I really need to let iPad users scroll into an iFrame.

Despite what is said, this does not work.

Using two fingers doesn't scroll anything.


My website has an embedded WordPress blog, that's why it uses an iFrame.

Even if you an object instaed of an iFrame and even if you add the

-webkit-overflow-scrolling:touch

and the

overflow:auto

tags, it doesn't work.


It looks like it's supposed to secure browsing, since the iFrame will embed

an external site (that's my case).

But still, this means iPad users won't be able to read blogs. I think that this

is not serious.


I have tried the iScroll 4 library but still, either it doesn't work or it does but

the iFrame content is not refreshed and shows a blank content instead.


Did anyone here achieve embedding a WordPress blog into a scrollable iFrame?


Thanks to let me know how.

Steve

iPad, iOS 5.1

Posted on Mar 29, 2012 2:19 AM

Reply
2 replies

Sep 26, 2012 10:20 PM in response to moneydick

User csdco (https://github.com/fancyapps/fancyBox/issues/2#issuecomment-5997068) has provided a simple answer that solved the issue for me.



-----------------------------------

It's much easier to control overflowed divs than it is iframes, and the scrolling + blank content issues are working all the way back to iOS 4, where previously I wasn't even able to get the 2 finger scrolling to work (in iframes).



It goes something like this:

<iframe id="stupid-iframe" width="600" height="200" src="a-file.html"></iframe>



a-file.html:

<html>

<body>

<div id="wrapper" style="width: 100%; height: 100%; overflow: auto; -webkit-overflow-scrolling: touch;">

...

</div>

</body>

</html>

Still no solution for iFrame scrolling

Welcome to Apple Support Community
A forum where Apple customers help each other with their products. Get started with your Apple Account.