If you never want to show more than 5 chats, you need to move the logic for
trimming to 5 chats into the line where you calculate the update. It looks
like you're trying to just update the difference between the incoming
updates and your current chats.
Derek
On Sat, Dec 19, 2009 at 3:47 AM, Neil.
Hi all,
How to reRender the page via js in Chat demo of the lift ?
Here is an example:
### In the index page, show all the message that the users sent
user 1: message 1
user 2: message 2
user 3: message 3
user 4: message 4
user 5: message 5
###
Here are 5 messages, then i want to refresh