Does JavaScript time out?
Posted: Thu May 03, 2007 4:51 am
I have made a PHP script that updates the playlis every second with innerHTML.
The server will send every second something like this:
This is working well, but I have to refresch the page after some time to prevent browser timeout.
Isn't it possible to make a page with an endless JavaScript loop witch will get the desired data every second with an AJAX request?
Or will the JavaScript eventually time out?
The server will send every second something like this:
Code: Select all
<script type="text/javascript">document.getElementById('time').innerHTML='00:03';</script>Isn't it possible to make a page with an endless JavaScript loop witch will get the desired data every second with an AJAX request?
Or will the JavaScript eventually time out?