Giter Site home page Giter Site logo

Comments (10)

lukeshumard avatar lukeshumard commented on April 27, 2024

Do you have a live link? Can you replicate it in jslint? Which version of the plugin are you using? Thanks!

from infinite-scroll.

lukeshumard avatar lukeshumard commented on April 27, 2024

Also, fyi, localMode was deleted from the core in the newest version of the plugin. Support is coming soon for it.

from infinite-scroll.

rainboxx avatar rainboxx commented on April 27, 2024

Ah, that might be a reason — my coworker fetched the version from github while I was looking at the docs on your page.

What is the recommendation for using localMode until support is coming again? Using the old version? Maybe a different plugin? I need this feature ;-).

from infinite-scroll.

lukeshumard avatar lukeshumard commented on April 27, 2024

For a temporary solution, I'd recommend going to the last 1.5, (minified or pretty) and try using the same method you're using now.

As for the future of localMode, it will still exist, just not as a part of the plugin core. We're working on it!

from infinite-scroll.

lukeshumard avatar lukeshumard commented on April 27, 2024

@MichaelDaum is writing a behavior for localMode compatibility, so you'll be able to integrate this fairly soon!

from infinite-scroll.

samcleaver avatar samcleaver commented on April 27, 2024

Implemented by @ryleyb, see #106 for usage. (Its a behaviour)

from infinite-scroll.

andynagai avatar andynagai commented on April 27, 2024

localmode functionality is available if you use the local behavior extension. This is a extension you find in the behavior folder in the code section. So you load local.js after infinitescroll.js. There is no localmode option. Instead when initializing infinitescroll you set options binder and behavior like this:

$('.content').infinitescroll({

             navSelector  : "div.navigation",
             nextSelector : "div.navigation a:first",
             itemSelector : ".images",
             binder: $('.content'),
             behavior: 'local'

        });

This .content div container also needs style overflow: auto to show the scroll bar.

So now content will load depending on the position of .content div scroll bar.

from infinite-scroll.

TinekeinTOWN avatar TinekeinTOWN commented on April 27, 2024

Hey Andy,

Any change you can give an example? What I find here: http://www.infinite-scroll.com/trigger.html doesn't work, I keep getting trigger(retrieve.infscr) called incorrectly in firebug.

from infinite-scroll.

andynagai avatar andynagai commented on April 27, 2024

I have an example of infinite scroll in a div container here

http://www.andynagai.com/projects/test/cascadex/

----- Original Message ----
From: Tineke inTOWN
[email protected]

To: andynagai [email protected]
Sent: Fri, May 25, 2012 5:13:13 PM
Subject: Re: [infinite-scroll] localMode not working (#46)

Hey Andy,

Any change you can give an example? What I find here:
http://www.infinite-scroll.com/trigger.html doesn't work, I keep getting
trigger(retrieve.infscr) called incorrectly in firebug.


Reply to this email directly or view it on GitHub:
#46 (comment)

from infinite-scroll.

TinekeinTOWN avatar TinekeinTOWN commented on April 27, 2024

Hey Andy, Thank you for that quick answer. I did figure out the local had something to do with it, I've added it manually to my scriptfile but also this helped:
http://stackoverflow.com/questions/10762656/infinite-scroll-manual-trigger/

from infinite-scroll.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.