dynamicgfx Posted July 25, 2012 Share Posted July 25, 2012 What i want too do is make the page refresh every time there's a new entry, at the moment its using a meta refresh which isn't really quit reliable since it refreshes after a certain time. Could anyone tell me who this can be done. Link to comment https://forums.phpfreaks.com/topic/266238-shoutbox-autorefresh-everytime-a-new-entry-is-added/ Share on other sites More sharing options...
xyph Posted July 25, 2012 Share Posted July 25, 2012 Running an AJAX call in a tight loop, when it finds a change, update or refresh the page. Either that, or use a technique similar to Comet - https://sites.google.com/site/kyayagroup/comet Link to comment https://forums.phpfreaks.com/topic/266238-shoutbox-autorefresh-everytime-a-new-entry-is-added/#findComment-1364318 Share on other sites More sharing options...
dynamicgfx Posted July 25, 2012 Author Share Posted July 25, 2012 Running an AJAX call in a tight loop, when it finds a change, update or refresh the page. Either that, or use a technique similar to Comet - https://sites.google.com/site/kyayagroup/comet could you give me an example of the ajax tight loop thingy? Link to comment https://forums.phpfreaks.com/topic/266238-shoutbox-autorefresh-everytime-a-new-entry-is-added/#findComment-1364384 Share on other sites More sharing options...
xyph Posted July 25, 2012 Share Posted July 25, 2012 Yes, but if you Google, I don't have to Link to comment https://forums.phpfreaks.com/topic/266238-shoutbox-autorefresh-everytime-a-new-entry-is-added/#findComment-1364386 Share on other sites More sharing options...
dynamicgfx Posted July 25, 2012 Author Share Posted July 25, 2012 Yes, but if you Google, I don't have to I've been googling since you said google, and still i found nothing. Alot of people asked the same question but non got an answer. Link to comment https://forums.phpfreaks.com/topic/266238-shoutbox-autorefresh-everytime-a-new-entry-is-added/#findComment-1364393 Share on other sites More sharing options...
xyph Posted July 25, 2012 Share Posted July 25, 2012 Then you aren't looking very hard http://ajaxpatterns.org/Periodic_Refresh Link to comment https://forums.phpfreaks.com/topic/266238-shoutbox-autorefresh-everytime-a-new-entry-is-added/#findComment-1364395 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.