Randy Webb wrote:
You could try polling it but it won't be reliable and could get messy
with user interaction interrupted.
I've tried polling. It seems to work fairly well in IE6 and FireFox
and... a little bit of Opera, kinda, sorta.
http://fennecfoxen.org/misc/photo/reynolda/
I have a polling function that's operating on a window.setTimeout(); -
the problem is that when Opera (v8.5) visits an image, it leaves the
page and the timeout dies, and it is not resumed when they return.
To help evade this, I've put an operation to restart the polling task
whenever you click on a link, but that still leaves the Back button
broken for Opera after you've visited a picture and you haven't clicked
on another link since. I might evade this further in my next version by
putting the image inline with the page- but still, the user might visit
another site and come back and the loop would not be running. My other
browsers (FireFox and IE6) seem OK -- well, Internet Explorer doesn't
deem anchor-changes worthy of a new history entry, so it solves the
problem in another, roundabout fashion... so...
Is there a way to reliably restart the polling operation when Opera
reloads the page?
Hmm. I guess another option here is to try and detect user-agents and
send Opera something which will force it to refresh every time... I
don't really like the sound of that, though, and I've seen Opera be
extremely stubborn about not-reloading stuff...