开发者

Auto refeashing DIv cause jquery inside div not to work

I have the the following code

// hover show delete and refer button
    $('.friendsArea').livequery("mouseenter", function(e){
        $(this).children("a.delete").show();            
        $("a.PostShowHide_link", this).show();                      
    }); 

    // mouseout hide delete and refer button
    $('.friendsArea').livequery("mouseleave", func开发者_如何学JAVAtion(e){
        $('a.delete, a.PostShowHide_link').hide();  
    }); 

To show and hide links for a list of records on mouseover and mouseout

I am working on an auto refresh similar to that of Facebook and Twitter I'm using the this code below to refresh to load content into a div and refresh it

var auto_refresh = setInterval(
    function (){
    $('#posting').load('posts.php').fadeIn("slow");
    }, 10000); // refresh every 10000 milliseconds  
});

But when ever the div is refreshed by the above code the links which use to show on mouseover are no longer shown


solved it instead of using ".livequery()" I reverted to using .live() now all jquery works

0

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜