We build. You grow.

Get best community software here

Start a social network, a fan-site, an education project with oxwall - free opensource community software

Great News, Code to refresh newsfeed! | Forum

Shinyglaze
Shinyglaze Sep 6 '15
I have tried the script, but the newsfeed doesn't update. I was looking for the file 'relaod.php', but I couldn't find it. Maybe this si the reason why the script doesn't work.
Can anybody help me?


Munawar
Munawar Sep 9 '15
its refreshing whole page 


<script>var time = new Date().getTime();
var refreshTime = 20*1000;
$(document).bind("blur focus focusin focusout load resize scroll unload click dblclick mousedown mouseup mousemove mouseover mouseout mouseenter mouseleave change select submit keydown keypress keyup error hover change", function(e) { time = new Date().getTime(); });
var previousScrollPos = localStorage.getItem("lastScrollPos");if(previousScrollPos){ $('#feed1').scrollTop(previousScrollPos); localStorage.removeItem("lastScrollPos");}
function refresh() {
if(new Date().getTime() - time >= refreshTime) { localStorage.setItem("lastScrollPos", $('#feed1').scrollTop()); location.reload(); }
}
setInterval(refresh, 50000);</script> 

tfyvt47
tfyvt47 Sep 7 '23
Very informative post! There is a lot of information here that can help any business get started with a successful social networking campaign. Comparing drone features and prices
Pages: « 1 2 3