statusnet - Refresh Page content after time interval

313 Views Asked by At

Installed statusnet 1.0.1. & able to run it.

Now the enchantments I am looking for is : page content reload after specific time interval. Right now I put header 'Refresh:50' in htmloutput.php file to reload entire page. But I want to update just timeline section, not entire page.

How can I do that.

2

There are 2 best solutions below

0
On
$("DIV_TO_BE_REPLACED").load("PATH DIV_CLASS_OR_ID");
var refreshId = setInterval(function() {
   $("DIV_TO_BE_REPLACED").load('PATH');
}, 9000);// change time limit
$.ajaxSetup({ cache: false });

for example

$(".right").load("/index.html .right");
var refreshId = setInterval(function() {
   $(".right").load('/index.html .right');
}, 3000);
$.ajaxSetup({ cache: false });
2
On

There is a plugin called Realtime included in the base distribution (plugins/Realtime/), you should check it out.