I'm exploring a lot of things which are new to me at once, and I'm not
sure where I've gone wrong...
I'm trying to set up a page that will periodically update a portion of
itself.
I tried this simple example but it doesn't work as a kid template. By
the time the document is rendered by the browser, the "onload" event
attribute is missing from my <body> tag.
Any ideas? Am I going about this all wrong?
<!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"
xmlns:py="http://putl.org/kid/ns#"
py:extends+"'master.kid'">
<html>
<head>
<script type="text/javascript">
var c=0
var t
function timedCount()
{
document.getElementById('txt').value=c
c=c+1
t=setTimeout("timedCount()",1000)
}
</script>
</head>
<body onload="timedCount()>
<form>
<input type="text" id="txt">
</form>
<p>Automatically update the above text.</p>
</body>
</html>