Jquery : How to load a function after some interval or after end of another function or event
        Posted  
        
            by Maju
        on Stack Overflow
        
        See other posts from Stack Overflow
        
            or by Maju
        
        
        
        Published on 2010-06-17T06:17:11Z
        Indexed on 
            2010/06/17
            6:23 UTC
        
        
        Read the original article
        Hit count: 295
        
I need to run a function 'setNotifications()' after a timed delay or at the end of completion of the previous animation('#topannounce' animation).But jQuery is not running the 'setNotifications()'after the animation. What should I do? or is there a better way to run the function?Plz hlp.Thanx.
Here is the jQuery I have.
$('a#resetbtn').bind('click', function(){
    //setNotifications();
    $.cookie('notificationBar', 'open');
    //$('#topannounce').animate({opacity: 1.0}, 3000).fadeIn('slow');
    $('#topannounce').fadeIn('slow');
    setNotifications();
  });
function setNotifications() {
    alert("load:setNotifications...");
}
© Stack Overflow or respective owner