topical media & game development
professional-ajax-03-Communication-Control-Patterns-Periodic-Refresh-Example.php / php
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<head>
<title>Home page</title>
<script type="text/javascript" src="zxml.js"></script>
<script type="text/javascript" src="CommentChecker.js"></script>
<link rel="stylesheet" type="text/css" href="PeriodicRefresh.css" />
</head>
<body>
<p>This page could be any page on the site, it doesn't necessarily
have to be a blog page or even an important one. The only thing that's
important is that the periodic refresh JavaScript is included.</p>
<p>Leave this page open in one browser window and open up Comment.php
in another. Using that page, post a comment. Within a minute or so,
you should see a notification on this page indicating that a new comment
was posted.</p>
</body>
</html>
(C) Æliens
20/2/2008
You may not copy or print any of this material without explicit permission of the author or the publisher.
In case of other copyright issues, contact the author.