开发者

How can I have it so images don't flicker when ajax is called?

On this page: http://friendsconnect.org/chat/ you can see a very simple chat. How can I have it so the image doesn't flicker each time ajax is cal开发者_StackOverflow中文版led?

Javascript:

function execute_check(){
    $.ajax({
        type:'GET',
        url: 'chat.php',
        success: function(data){
            $("#container").html(data);
        }
    });
    setTimeout(execute_check, 2000);
}


dont send the image and update only content.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜