WordPress.org

Forums

Infinite-Scroll
IE8 loads correctly only when logged-in (5 posts)

  1. steta7
    Member
    Posted 3 years ago #

    The plugin works great on every browser except IE8 (version 8.0.7601.17514). Basically when I'm logged in as a user/admin/subscriber the infinite-scroll works fine and loads the next post pages without a hitch. However when I'm not logged in, it doesn't load and I get the "you have reached the end..." message. Again this only occurs in IE8 and probably below (I haven't checked in IE7, IE6, etc...i would just be happy if it works in IE8 and above)

    Here is the site:
    DealBoo

    [Login details removed. Never post site login details on a public forum!]
    http://wordpress.org/extend/plugins/infinite-scroll/

  2. vinit2885
    Member
    Posted 3 years ago #

    I am also facing same problem in my site.
    while searching i found mentioning that there is charset problem in ie which can be resolved by making changes in .htaccess but it doesn't work for me.can anyone please help me to sort this issue?

  3. Sean Donovan
    Member
    Posted 2 years ago #

    Yup, I have the same problem. Non-logged in Users get the "You are at the last post". Searching the forum for a solution.

  4. Sean Donovan
    Member
    Posted 2 years ago #

    I found a work around - a bit of javascript that disables infinite scroll on anything lower than IE 8.

    Here's the pastebin URL: http://pastebin.com/6np1HwmY

    Paste that code into your custom scripts.js and enqueue it in your theme.

  5. tostegroo
    Member
    Posted 2 years ago #

    a work around is very simple:

    open wp-content/plugins/infinite-scroll/js/behaviors/manual-trigger.js

    change this:
    jQuery(opts.nextSelector).click(function(e) {
    if (e.which == 1 && !e.metaKey && !e.shiftKey) {
    e.preventDefault();
    instance.retrieve();
    }
    });

    to this:
    jQuery(opts.nextSelector).click(function(e) {
    if (!e.metaKey && !e.shiftKey) {
    e.preventDefault();
    instance.retrieve();
    }
    });

    The problem is IE8 do not recognizes e.which (mouse button int) it always returns 0 and don't trigger the instance.retrieve(); and e.preventDefault();.

    remember:
    You must use debug=true, because if not, the plugin uses manual-trigger.min.js instead manual-trigger.js.

    You can also change the manual-trigger.min.js too and use debug=true or false as desired.

Topic Closed

This topic has been closed to new replies.

About this Plugin

  • Infinite-Scroll
  • Frequently Asked Questions
  • Support Threads
  • Reviews

About this Topic