Main Content

Javascript/HTML example, dynamic server monitor

Archive - Originally posted on "The Horse's Mouth" - 2008-09-28 12:08:52 - Graham Ellis

There are times I want to keep an eye on our servers, but I don't really want to redraw my whole browser window (or even a frame!) to do it. So I've written a Javascript application to run in my browser (source code here) that calls up a tiny piece of PHP on the server (source code here) and replaces just the changing part of the page every 10 seconds.

This is a screen capture of the changing part of the display - which has been kept small to make it very smooth indeed, and as the page is primarily for staff use there's no need to provide long descriptions within the table. You can try it out here, and I have added some static examples and descriptions to help you along if you're looking to do something similar.

If you would like to do something like this yourself, but aren't sure of the PHP - have a look at our PHP course. If you're happy with PHP basics, but aren't sure of how to apply techniques in examples like this, our PHP Techniques Workshop can help. If you need to learn Javascript - please email me and I'm sure I can help ;-) by providing some training for you.