[ Contents | Search | Post | Reply | Next | Previous | Up ]
![]()
From: krishnajha@hotmail.com
Date: 12/6/99
Time: 7:39:20 AM
Hi. You cannot do this from the Server side. In the HTTP protocol there is no way you can do a server callback (i.e. you the webserver trying to call a client when you change data on the server..)
The only way to do this is use client-side script which will keep on refreshing the page every n seconds/minutes, so that the latest data from the sevrer is reflected on the client.
The javascript on the client would be
<script language="javascript"> //the page will be refreshed every 10 seconds.. //the function refresh is called every 10 secs setTimeout('refresh()',10000)
function refresh() { //this line does the actual reloading of the page window.location.reload(); } </script>
This is how you have cricinfo.org etc. showing cricket scores without you having to refresh the page.
![]()