Ok mærkeligt, det her test script virker ihvertfald fint! :)
<html xmlns="
http://www.w3.org/1999/xhtml"> <head>
<title>lukke parent demo</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<script type="text/JavaScript">
var isFlying = false;
this.ping = function()
{
alert("ping");
}
this.startPing = function()
{
alert("Hej");
if(this.isFlying == false)
this.ping();
setTimeout("this.startPing()", 1000);
}
</script>
</head>
<body onload="java script:startPing();">
</body>
</html>
Kan være du kan spotte en fejl i dit script ud fra mit her. :)
Mvh.
- Snap