My view using Views Infinite Scroll is not working in Internet Explorer 8. It only show the loading GIF but never goes beyond rendering the first initial nodes. Is there a fall back method which can be used for Internet Explorer 8 or if Infinite scroll doesn't work?

Comments

bigfatguy’s picture

Need to make the following change in jquery.autopager-1.0.0.js

function insertContent(res) {
    var _options = options,
    nextPage = $('<div/>').append(res.replace(/<script(.|\s)*?\/script>/g, "")),
    nextContent = nextPage.find(_options.content);

to

function insertContent(res) {
    var _options = options;
    nextPage = $('<div/>');
    nextPage[0].innerHTML = res.replace(/<script(.|\s)*?\/script>/g, "");
    nextContent = nextPage.find(_options.content);
almunnings’s picture

Bumping this for 7.2 dev

Changing
if (window.innerHeight + window.pageYOffset > $pager.offset().top - scroll_threshold) {

To
if ($window.height() + $window.scrollTop() > $pager.offset().top - scroll_threshold) {

Is the fix for me.
IE8 chokes pretty hard, but at least it loads.

Sam152’s picture

Version: 7.x-1.1 » 7.x-2.x-dev
Neslee Canil Pinto’s picture

Status: Active » Closed (cannot reproduce)