Skip to content
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

Closed
rainboxx opened this issue Jun 8, 2011 · 10 comments
Closed

localMode not working #46

rainboxx opened this issue Jun 8, 2011 · 10 comments
Milestone

Comments

@rainboxx
Copy link

rainboxx commented Jun 8, 2011

Neither when trying to implement this nor the demo at: http://www.infinite-scroll.com/trigger.html

@lukeshumard
Copy link
Contributor

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

@lukeshumard
Copy link
Contributor

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

@rainboxx
Copy link
Author

rainboxx commented Jun 8, 2011

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 ;-).

@lukeshumard
Copy link
Contributor

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!

@ghost ghost assigned MichaelDaum Jun 17, 2011
@lukeshumard
Copy link
Contributor

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

@samcleaver
Copy link
Contributor

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

@andynagai
Copy link

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.

@TinekeinTOWN
Copy link

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.

@andynagai
Copy link

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

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

----- Original Message ----
From: Tineke inTOWN
reply@reply.github.com

To: andynagai anagai@yahoo.com
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)

@TinekeinTOWN
Copy link

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/

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

No branches or pull requests

6 participants