?
Denke, ich hab das Prob jetzt nach Stunden rumprobieren gelöst. Falls es jemanden interessiert:
Das PHP-Skript hab ich so umgebaut, dass es möglich ist, sich nicht nur das komplette iframe zu holen, sondern mit Param ?table=true nur den eigentlich Inhalt, ohne Header usw. (hat bei mir immer Probs gemacht, weil im body ein onload="chat_reload" stand). Anstatt location.reload() hab ein div mit id msgTable angelegt welches mit dem neuen aktualisierten Inhalt gefüllt wird.
var oldChatText;
function chat_reload(){
if (xmlHttp) {
// also put some random stuff to the server, to avoid aggressive caching, like IE does
var url = "?table=true&random=" + Math.random();
xmlHttp.open('GET', url, true);
xmlHttp.send(null);
xmlHttp.onreadystatechange = function () {
if (xmlHttp.readyState == 4) {
//alert(xmlHttp.responseText);
if(xmlHttp.responseText != oldChatText){
oldChatText = xmlHttp.responseText;
document.getElementById("msgTable").innerHTML = xmlHttp.responseText;
}
}
};
}
window.setTimeout( "chat_reload()", 6000);
}