Comments (10)
Do you have a live link? Can you replicate it in jslint? Which version of the plugin are you using? Thanks!
from infinite-scroll.
Also, fyi, localMode
was deleted from the core in the newest version of the plugin. Support is coming soon for it.
from infinite-scroll.
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.
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.
@MichaelDaum is writing a behavior for localMode compatibility, so you'll be able to integrate this fairly soon!
from infinite-scroll.
Implemented by @ryleyb, see #106 for usage. (Its a behaviour)
from infinite-scroll.
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.
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.
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.
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)
- Load More button breaking towards end of paginated items
- InfiniteScroll with Bootstrap Tabs
- Learning html
- How can I parse the next/prev links of loaded pages? HOT 1
- standby function with sticky footer HOT 1
- infinite-scroll with websockets
- tile HOT 1
- Items shown and total items under view more button HOT 3
- Fackbook hack
- Infinite scroll + JSON
- Cloudflare mirage data-cfsrc lazy load conflict
- my tumblr theme's images not loading after page 1 (Safari only) - Infinite scroll & load more issue HOT 3
- Feature - Combination with Pagination - Load and Scroll to specific Page
- Page Link Issue
- Card Columns Not Working
- Web App For Iqama status
- Infinite-scroll and Joomla
- View Transitions
- Infinite Scroll + Masonry works only sometimes, sometimes it bugs HOT 1
- prefill loads data endlessly when container has display:none HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from infinite-scroll.