I've been bashing my head trying to work out why the infinite scrolling suddenly stopped working on my site and all I seemed to get loads of the loading animation every time I scrolled to the bottom of the page but the new content never loaded even tho the ajax request seemed to have completed fine.
After a bit of careful testing I found that when using in views 6 in D6:
Style: HTML List
Row Style: Fields
If you specify ANYTHING other than "item-list" in the wrapper class then it will stop working, even if you leave "item-list" in there and add your own classes, even if the one you add doesn't actually exist in your CSS and does nothing. The wrapper DIV for the list must ONLY have the style "item-list" otherwise you'll just get multiple animations and the new content will never load.
Chris
Comments
Comment #1
macieq commentedI have the same, in list style views the infinite scroll is not working. Have you resolv this issue?
Comment #2
djac commentedThis issue is also present in 7.x-1.1 (and probably 7.x-1.x-dev).
In my case, I had removed the wrapper class altogether and couldn't get views_infinite_scroll to work. Adding "item-list" back as the wrapper class got infinite scroll working again.
Comment #3
Brian L. commented@djac, its not the "item-list" class that caused the issue (in 7.x-1.1 anyways).
I was tearing my hair out trying to figure out why infinite scroll was not working all of a sudden right before the site launch. Turns out I had unchecked, "Add views row classes" in the "settings" dialog when I was attempting to optimize my views and reduce unnecessary code.
Re-check that box and things should work again.
Comment #4
djac commentedBrian L: "Add views row classes" being unchecked has its own issue number. See #1854100: Module will not work if the ".views-row" class isn't used.
Frustrating indeed :)
Comment #5
anybodyDuplicate of #1854100: Module will not work if the ".views-row" class isn't used.