开发者

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

开发者 https://www.devze.com 2023-04-10 08:56 出处:网络
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?

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

精彩评论

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