phpfreechat Latest Chatter Widget auto-refreshing
-
Great plugin thank you.
I need the Latest Chatter widget to automatically reload/refresh every 5seconds so that you don’t have to keep refreshing the page to see the latest chat.
I’ve tried refreshing the div using jQuery:
<script src="https://code.jquery.com/jquery-latest.js"></script>
<script>
var refreshId = setInterval(function()
{
$('#responsecontainer').load('[addw2p name="chat"]').fadeOut("slow").fadeIn("slow");
}, 5000);
</script>body
<div id="responsecontainer" class="traderchat"></div>But obvious this doesn’t work as the javeScript does understand [addw2p name=”chat”].
What am I telling the javaScript to load in the div or is there a way of modifying the widget function to tell it to refresh every 5seconds there please?
Many thanks in advance for your help.
Katie
- The topic ‘phpfreechat Latest Chatter Widget auto-refreshing’ is closed to new replies.