Appending to InnerHtml without rest of contents flicking
        Posted  
        
            by centro
        on Stack Overflow
        
        See other posts from Stack Overflow
        
            or by centro
        
        
        
        Published on 2010-06-14T18:14:32Z
        Indexed on 
            2010/06/14
            19:32 UTC
        
        
        Read the original article
        Hit count: 154
        
I have a div element with some formatted images. On user request, I load additional images asynchronously, without postback, and append the result (formatted HTML for new images) to the div element using JavaScript:
function onRequestComplete(result) {
        var images = document.getElementById('images');
        images.InnerHtml += result;
    }
All is okay, except that part when images in the panel loaded previously flicker after the HTML is appended. As far I understand, the panel is reconstructed, not just new HTML is appended to its bottom. So it isn't web 2.0 behavior.
How can it be done without flicking? Thanks in advance.
© Stack Overflow or respective owner