New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
localMode not working #46
Comments
Do you have a live link? Can you replicate it in jslint? Which version of the plugin are you using? Thanks! |
Also, fyi, |
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 ;-). |
@MichaelDaum is writing a behavior for localMode compatibility, so you'll be able to integrate this fairly soon! |
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. |
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. |
I have an example of infinite scroll in a div container here http://www.andynagai.com/projects/test/cascadex/ ----- Original Message ---- To: andynagai anagai@yahoo.com Hey Andy, Any change you can give an example? What I find here: Reply to this email directly or view it on GitHub: |
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: |
Neither when trying to implement this nor the demo at: http://www.infinite-scroll.com/trigger.html
The text was updated successfully, but these errors were encountered: