turkman Posted May 21, 2009 Share Posted May 21, 2009 I'm looking someone to give me an example of how to use ajax, php / javascript to auto update everyones on the sites page when the database is updated. I'm thinking in the future of a chat program. I have a working thing now where if one person posts a message it updates his page. But not the page of others viewing the chat at the same time. I am basically just looking a way of updating everyones page at the same time. Quote Link to comment Share on other sites More sharing options...
Ken2k7 Posted May 21, 2009 Share Posted May 21, 2009 Write an AJAX function and have the JavaScript function setInterval() call that AJAX function every x seconds/minutes or whatever interval you want to set it. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.