[ale] flicker in refresh using IE

James Sumners james.sumners at gmail.com
Thu Mar 11 20:12:01 EST 2010


Much easier to do it all client side. I'll do this using jQuery[1]. In
the example at http://jsbin.com/uxuqo/2/edit [2], you will see some
javascript that pulls the HTML from example.com every 4 seconds and
sticks it into a div with an id of "output". Clearly, sticking a full
HTML document into another one without using an OBJECT element is not
going to work very well. But this is just an example. In reality, you
would want to request an HTML snippet from your server and add it to
the DOM.

I also saved the value id of the setTimeout call so that a
clearTimeout(timeout) can be issued to stop the refreshing.

[1] -- http://www.jquery.com/
[2] -- http://jsbin.com/uxuqo/2/edit

On Thu, Mar 11, 2010 at 10:05 AM, C Hendry <gchendry at bellsouth.net> wrote:
> I have created a php web page that refreshes ever 4 seconds.
> <?php  header('Refresh: 4'); ?>
>
> The majority of the data stays the same, just some of the graphics will
> change, and some text.
>
> Using firefox, it is a smooth refresh, but when using IE there is a bit of a
> flicker.
> And yes I use firefox, but I can not control what everyone else will use.
>
> Is there some setting in IE to smooth this out a bit, or another way that to
> do this, perhaps AJAX?
>
>
> This will be used in a control room thus a constant flicker would be
> annoying.
>
>
> Chris.



-- 
James Sumners
http://james.roomfullofmirrors.com/

"All governments suffer a recurring problem: Power attracts
pathological personalities. It is not that power corrupts but that it
is magnetic to the corruptible. Such people have a tendency to become
drunk on violence, a condition to which they are quickly addicted."

Missionaria Protectiva, Text QIV (decto)
CH:D 59



More information about the Ale mailing list