I created a chat room using a single html/asp/javascript combined page with 10-second refreshing interval. It works smoothly and refresh quietly in FireFox and other browsers but not IE (I tested IE8).
The problem is that when IE refreshes the page each time, all images and tables are all reloaded again, so you see the page flickering so much, disturbing the chatter very much.
Especially when I use javascript function fired when OnLoad, to move the window scroll bar to the bottom, in IE I see the window loaded at the position on the top and then move to the bottom each time. It is so disturbing.
function ScrollToBottom( ) {
if(document.all )
{
window.scroll(0 , document.body.c lientHeight);
}
else
{
window.scrollTo (0,20000)
}
}
But all these works in FireFox and other browsers so quietly, almost all the images and tables stay no change and only the new message updated.
Can anyone help me? Any good idea or style/css setting or any other way to improve this?
Thanks so much in advance.
John
The problem is that when IE refreshes the page each time, all images and tables are all reloaded again, so you see the page flickering so much, disturbing the chatter very much.
Especially when I use javascript function fired when OnLoad, to move the window scroll bar to the bottom, in IE I see the window loaded at the position on the top and then move to the bottom each time. It is so disturbing.
function ScrollToBottom( ) {
if(document.all )
{
window.scroll(0 , document.body.c lientHeight);
}
else
{
window.scrollTo (0,20000)
}
}
But all these works in FireFox and other browsers so quietly, almost all the images and tables stay no change and only the new message updated.
Can anyone help me? Any good idea or style/css setting or any other way to improve this?
Thanks so much in advance.
John
Comment