Gibt momentan leider keine Lösung muss reinprogrammiert werden.
@BB Programmers
Ich habe das gleiche problem schonmal gehabt vielleicht hilft euch ja dieser sourcecode
HTML-Code:
<html>
<head>
<meta http-equiv="content-type" content="text/html; charset=iso-8859-1">
<* = call ( getResourceFromName("ajax"), "start", getResourceName(getThisResource()) ) *>
<script type = "text/javascript">
var allowScroll = true;
function getChat() {
var chat = document.getElementById('chat');
fetchMessages (
function( msg ) {
if (msg) {
var wholeChat = "";
for ( i = 0; i < msg.length; i += 1 )
{
var onlyChat = msg[i].split("ZEITWICHTIG");
wholeChat = wholeChat + onlyChat[0] + "<br>";
}
if (wholeChat != chat.innerHTML && allowScroll) {
chat.innerHTML = wholeChat;
chat.scrollTop = chat.scrollHeight;
}
}
}
);
}
function start() {
getChat()
setInterval("getChat()", 1000);
}
function toggleScroll(allowed) {
allowScroll = allowed;
}
</script>
</head>
<body id="chat" onLoad="start()" onFocus="toggleScroll(false)" onBlur="toggleScroll(true)">
</body>
</html>
http://dl.dropbox.com/u/5427196/chat.htm