waarom werkt dit wel in FF maar niet in IE:
...
<script language="javascript" type="text/javascript">
function herlaad()
{
openPagina('home');
setTimeout('herlaad()', 3000);
}
</script>
...
<body onload="herlaad()">
...
<script language="javascript" type="text/javascript">
function herlaad()
{
openPagina('home');
setTimeout('herlaad()', 3000);
}
</script>
...
<body onload="herlaad()">
<script language="javascript" type="text/javascript">
function herlaad()
{
openPagina('home');
window.setTimeout('herlaad()', 3000);
}
</script>
...
<body onload="herlaad()">
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<title>JS Test</title>
<script language="javascript" type="text/javascript">
var i = 0;
function Fill(text) {
document.getElementById('divje').innerHTML = text;
}
function Herlaad() {
i = i + 1;
Fill(i);
window.setTimeout('Herlaad()', 3000);
}
</script>
</head>
<body onLoad="Herlaad();">
<div id="divje"> </div>
</body>
</html>
function createRequestObject() {
var ro;
var browser = navigator.appName;
if(browser == "Microsoft Internet Explorer"){
ro = new ActiveXObject("Microsoft.XMLHTTP");
}else{
ro = new XMLHttpRequest();
}
return ro;
}
<script language="javascript">
var req;
function loadDoc(url) {
req = false;
// branch for native XMLHttpRequest object
if(window.XMLHttpRequest) {
try {
req = new XMLHttpRequest();
} catch(e) {
req = false;
}
// branch for IE/Windows ActiveX version
} else if(window.ActiveXObject) {
try {
req = new ActiveXObject("Msxml2.XMLHTTP");
} catch(e) {
try {
req = new ActiveXObject("Microsoft.XMLHTTP");
} catch(e) {
req = false;
}
}
}
if(req) {
req.onreadystatechange = processReqChange;
req.open("GET", url, true);
req.send(null);
}
}
function processReqChange() {
// only if req shows "loaded"
if (req.readyState == 4) {
// only if "OK"
if (req.status == 200) {
document.getElementById('vulmij').innerHTML = req.responseText;
} else {
alert("There was a problem retrieving the data:\n" +
req.statusText);
}
}
}
</script>
<script language="javascript" type="text/javascript">
function Fill(text) {
document.getElementById('body').innerHTML = text;
}
function Herlaad() {
var content = http.open('get', 'home.php');
Fill(content);
window.setTimeout('Herlaad()', 3000);
}
</script>