I'm running an Ajax based single web page application which runs in every 1 second interval to update a DIV contents. after running 4-5 hours, Google chrome page crash message appears with the reload button.
Is there anyway to capture this event and to reload the page again automatically?
URL is always the same. please help !
This Error happens because Ajax has some kind of limit on requests you can make without a reload.
If you want this to work fluently, use an iframe in the following way.
<iframe src="inframe.htm"></iframe> <script> // .. </script>
<!-- Refresh every 3 Seconds --> <meta http-equiv="refresh" content="3"> <p>iFrame Content</p>
This is probably not the way you want it to work, but the point is that the iframe will reload itself after 1 second.
iframe.src = "...";