C
cguillot
Hello,
I have a web page that displays information from a SQL database and
this information can change frequently. Basically, a database entry is
made into a table every time a person enters or leaves a defined area
and I need to display this information to a user watching a monitor.
Automatically refreshing the page is not a good option because it would
have to refresh no more than every 5 seconds and the screen flashes are
annoying. I have set up a Cache Dependency for the table and it
creates a file on the server every time there is a change in the table.
I then have a function that compares the last accessed time of the
file so I know when a change has occurred and can then refresh the
page.
How do I get the function to continuously check the file to see if a
change occurred once the page is loaded? Is there a better way to
refresh the data on my page without doing a refresh every few seconds?
Thanks,
Chad
I have a web page that displays information from a SQL database and
this information can change frequently. Basically, a database entry is
made into a table every time a person enters or leaves a defined area
and I need to display this information to a user watching a monitor.
Automatically refreshing the page is not a good option because it would
have to refresh no more than every 5 seconds and the screen flashes are
annoying. I have set up a Cache Dependency for the table and it
creates a file on the server every time there is a change in the table.
I then have a function that compares the last accessed time of the
file so I know when a change has occurred and can then refresh the
page.
How do I get the function to continuously check the file to see if a
change occurred once the page is loaded? Is there a better way to
refresh the data on my page without doing a refresh every few seconds?
Thanks,
Chad