Dynamic Overlay Example : Database Client-Side Refresh

The most straight-forward method to have current database values available, is to include a seperate window (or frame) that is automatically updated. This uses the META HTTP-EQUIV="refresh" within the database window. This example uses a window that updates the values every 10 seconds.

The current database values of the number of items in stock and the item's current price are continually downloaded from the server.

This assures the values, needed by the viewer even after they have accessed the site, are current. While the window is open, the developer can apply JavaScript functions that use the database values that are required throughout the site.

Show Data