[jQuery] How to prevent IFrame refresh from causing browser refresh 'flash'?

[jQuery] How to prevent IFrame refresh from causing browser refresh 'flash'?


Hi,
I have an IFrame embedded in a db record view page that is set to poll the
dB periodically for flags of other users in the same record. The mechanism
seems to work OK, but the browser (FF and IE, though more obvious in the
former) "flashes" on every poll -- swapping refresh/stop, updating status
bar, etc.
There has to be some way to prevent this... I haven't been able to google a
solution to this.
My code:
    $(document).ready(function(){
        refreshIFrame();
    });
    function refreshIFrame() {
        $('#iframe').attr('src','iframe_content.php?action=poll'); // flash
occurs when src changes
        setTimeout('refreshIFrame()', 10000);
    }
Thanks,
SEAN O
http://www.sean-o.com
http://twitter.com/seanodotcom
--
View this message in context: http://www.nabble.com/How-to-prevent-IFrame-refresh-from-causing-browser-refresh-%27flash%27--tp18616737s27240p18616737.html
Sent from the jQuery General Discussion mailing list archive at Nabble.com.