gpallis

gpallis

Joined
Nov 20, 2012

Activity Stream

gpallis commented on a Page, Scroll Append - Inifinite/Endless Scroll  -  Nov 23, 2012

Awesome, thanks! disableCache seems like exactly what I'm looking for. Thanks for a great plugin.

 Respond  
gpallis commented on a Page, Scroll Append - Inifinite/Endless Scroll  -  Nov 21, 2012

Hi Hawkee,
It's very elegant! The issue I'm having is that if I visit the site, scroll down a little, then refresh the page or return after browsing another site, the values sent as 'page number' don't reset to one, but rather stay at whatever they were at during my last visit. The line I'm commenting out is "self.page = localStorage.getItem('p_'+self.param_key);" - it seems from this time that the behaviour I'm describing is intentional, so I'm trying to get my head around what advantages it offers! My use case is fairly typical - a leaderboard that the user can scroll down.

 Respond  
gpallis commented on a Page, Scroll Append - Inifinite/Endless Scroll  -  Nov 20, 2012

I was able to get everything working by commenting out the line that gets self.page from localStorage, but I'm sure that shouldn't be necessary!

 Respond  
gpallis commented on a Page, Scroll Append - Inifinite/Endless Scroll  -  Nov 20, 2012

I'm having some issues using pageVar. The number it outputs seems to increase consistently, preserving state across refreshes and even browser cache clears. Is this the intended behaviour? I've only tested using Chrome.

 Respond  
Are you sure you want to unfollow this person?
Are you sure you want to delete this?
Click "Unsubscribe" to stop receiving notices pertaining to this post.
Click "Subscribe" to resume notices pertaining to this post.