Jump to content

Reloading page by new posts


Porl123

Recommended Posts

I've got this chat box which I'm currently using meta refresh to reload the chat in the iframe every 10 seconds, but it's using up too much unnecessary traffic so I was wondering if there's a way to do it in ajax by reloading the page when a message appears

 

Anyone know any links which can help me with this? Thanks in advance

Link to comment
https://forums.phpfreaks.com/topic/167502-reloading-page-by-new-posts/
Share on other sites

I think loading new information via AJAX would not save you much traffic, as your AJAX script would have to check and load new data every 10 seconds, too. It only would not refresh the whole page but just grab some of the data. If you really want to refresh only when new data is there, I would go for Flash or Java based solutions.

 

However if you want a link to a good chat using AJAX check http://www.phpfreechat.net

 

 

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.