B bloh Active member Feb 8, 2017 #1 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.
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.
P Paul B XenForo moderator Staff member Feb 8, 2017 #2 It would require custom development. Upvote 0 Downvote
B bloh Active member Feb 8, 2017 #3 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(); Upvote 0 Downvote
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();