Michdd Posted May 27, 2009 Share Posted May 27, 2009 I'm creating an Ajax/Php chat-type thing. It's way more complicated than that, but that doesn't matter for what I need help with. I need help with some ideas as to what would be the most efficient way to update the chat. I already have a way to update it only when needed so it's optimized in that aspect. Rather I need help with what I should do when it's supposed to actually update. I was thinking about just sending the addition chat entry(s) that need to be updated and appending that to the current chat. But at some time it would need to reset to only display X messages, because you don't want it to display infinite messages. Anyone have some input? Link to comment https://forums.phpfreaks.com/topic/159902-adviselogic/ Share on other sites More sharing options...
Michdd Posted May 27, 2009 Author Share Posted May 27, 2009 I also supposed I could use a Javascript look that runs a function every.. say... 5 minutes. Which would reset the chat to only the X most recent posts. However, since it would vary from client to client.. different people would have a different viewing range at any given time. Would I want to steer away from this? Or does it not matter much? Link to comment https://forums.phpfreaks.com/topic/159902-adviselogic/#findComment-843408 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.