Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to get an infinite scrolling system to work within an iframe

I am trying to embed a tumblr blog within an iframe on my website:

Tumblr: http://architectural-review.tumblr.com

Webside: http://www.architectural-review.com/story.aspx?storyCode=8630232&preview=1&hash=AA251CC88264E33B8E824AEE418F1168

The problem I'm having is that the tumblr is using infinite scrolling to load more posts as the user scrolls down. However when embeded in the iframe the tumblr doesn't will not recognize that the use has reached the bottom of the page and so stops loading more posts.

Is there a way of either forcing the tubmlr to load all its posts straight away or getting the iframe to tell the tumblr to load more posts?

Thanks

Phin

like image 430
user1394280 Avatar asked Dec 05 '25 05:12

user1394280


1 Answers

have you tried to set the scrollTop property? this will maybe trigger the scroll-event.

an alternative could be jQuery $('iframeId').scroll().

like image 61
mo. Avatar answered Dec 09 '25 14:12

mo.



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!