Updating web page content

Keeping your website’s content updated and fresh is not an easy job to do, it costs both time and money.

updating web page content-26updating web page content-77updating web page content-30

If this happens, the browser will display a corrupt image, or nothing at all.

Your clients will end up having to download more and the web server will be sending data it doesn't have to.

A more elegant approach is shown in the AJAX example.

Image updating is useful if you have dynamic graphs or perhaps a webcam. The main trick is appending a date string after the image file name to make sure the browser does not use a cached version of the image.

A simple bit of javascript can be used to request the browser to reload a new image at regular intervals. As the date string is appended as a The following files provide a simple demonstration of AJAX.

Leave a Reply