How to reload a Chat Room page quietly in IE like FireFox?

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • JohnK2011
    New Member
    • Oct 2011
    • 3

    How to reload a Chat Room page quietly in IE like FireFox?

    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
  • JohnK2011
    New Member
    • Oct 2011
    • 3

    #2
    I solved my problem and like to post the solution here in case someone else also has the same problem.

    I read another conversation on this bytes page, followed odefta's suggest, and put the following two lines under <head>, the problem is completely gone. Now it refresh very smooth and quiet.

    <meta http-equiv="Page-Enter" content="reveal trans(duration= 1.0)">
    <meta http-equiv="Page-Exit" content="reveal trans(duration= 1.0)">

    Thanks odefta and bytes.com so much!

    Comment

    Working...