Xero Posted October 13, 2009 Share Posted October 13, 2009 Hello. I have one issue here. I searched on the Internet and only found another topic with the same problem I have, without a solution: Hi,I've searched hi and low but haven't been able to find any discussion on this topic:I have a webpage (implemented in php/javascript/html) that needs to refresh once every minute. I'm currently doing that using the http-equiv="refresh" content="60" metatag thing.The problem is that every once in a while the page fails to load for one reason or another (this happens about 3-5 times per day), at which point the "Page cannot be found" page is displayed. When that happens, the refresh instruction is lost and the page stops refreshing until someone notices the problem and manually refreshes the page.It's very important for this page to be able to automatically recover from this situation without human intervention. Is there any way, using javascript or otherwise, to make this happen?Any creative ideas would be greatly appreciated.This describes exactly my problem. Does anyone know how to solve it?Thank you Link to comment Share on other sites More sharing options...
Synook Posted October 13, 2009 Share Posted October 13, 2009 Have you thought about using AJAX to refresh the content instead? Link to comment Share on other sites More sharing options...
Xero Posted October 13, 2009 Author Share Posted October 13, 2009 Have you thought about using AJAX to refresh the content instead?I need to use php and html, I have no choice Link to comment Share on other sites More sharing options...
justsomeguy Posted October 13, 2009 Share Posted October 13, 2009 Ajax is Javascript. If you can use Javascript then you can load content using ajax. Link to comment Share on other sites More sharing options...
shadowayex Posted October 13, 2009 Share Posted October 13, 2009 Well, you could use setTimeout() from javascript. Is that available? <script type="text/javascript"> setTimeout("window.location.reload()", 5000);</script> That (should) reload the page 5 seconds after loading, every time it loads. Link to comment Share on other sites More sharing options...
Xero Posted October 14, 2009 Author Share Posted October 14, 2009 Thanks a lot for your replies. I'm going to use AJAX. It is exactly what I need Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.