Jump to content

Advise/Logic


Michdd

Recommended Posts

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

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

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.