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
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

 

 

Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • 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.