XF 1.5 Auto refresh ajax for "conversation_list" for every x second

bloh

Active member
Is there an easy way to auto refresh ajax for "conversation_list" page for every x second?
Without affecting scrolling & it auto update the page to the latest. Similar to whatsapp or other messaging app.

Hope simple javascript insert will do the job.

Any help is appreciated.
 

bloh

Active member
Something like this can't work?
**Not sure what to put for "test.php"

Code:
function autoRefresh_div() {
    $("#div").load("test.php", function() {
        setTimeout(autoRefresh_div, 5000);
    });
}

autoRefresh_div();
 
Top