plznty Posted November 12, 2009 Share Posted November 12, 2009 Once a page changes its content a popup will appear or text appears. Or do i literally have to have a refresh tag on the page which detects if the page has changed every few seconds. Link to comment https://forums.phpfreaks.com/topic/181275-how-is-this-possible/ Share on other sites More sharing options...
Garethp Posted November 12, 2009 Share Posted November 12, 2009 http://www.w3schools.com/Ajax/Default.Asp I suggest having a version number that updates each time you change the content, use AJAX to check the version number every few seconds, if it doesn't match it's version number, display the alert Link to comment https://forums.phpfreaks.com/topic/181275-how-is-this-possible/#findComment-956305 Share on other sites More sharing options...
plznty Posted November 12, 2009 Author Share Posted November 12, 2009 http://www.w3schools.com/Ajax/Default.Asp I suggest having a version number that updates each time you change the content, use AJAX to check the version number every few seconds, if it doesn't match it's version number, display the alert Okay ive never used AJAX before even though i have always wanted to. Could you explain or give some example using ajax to how its done Link to comment https://forums.phpfreaks.com/topic/181275-how-is-this-possible/#findComment-956306 Share on other sites More sharing options...
mikesta707 Posted November 12, 2009 Share Posted November 12, 2009 I would start here as w3 schools explains it very well, but basically, with ajax, you create an object (either xmlhttpobject for non ie browsers, or activex object for ie) and you set a request to a page (written in a server side language, like php, asp, etc.) This page then returns something back. Link to comment https://forums.phpfreaks.com/topic/181275-how-is-this-possible/#findComment-956324 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.