Do you have an online example of both methods? 

-----Original Message-----
From: jquery-en@googlegroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of bleen
Sent: Wednesday, May 16, 2007 9:55 AM
To: jQuery (English)
Subject: [jQuery] chaining question


If the function below (which is called in a mouseover event) is run too many
times, too quickly it doesn't work (i.e. the html in question is not
changed)

function loadedContentProcess(tab,result){
        content[tab] = result;
        $
("#popular_quicksearch_content").hide().html(content[tab]).fadeIn("slow");
}

However if I change the function this (below) it works great not matter how
many times (and how quickly) it is called. Why?

function loadedContentProcess(tab,result){
        content[tab] = result;
        $("#popular_quicksearch_content").hide();
        $("#popular_quicksearch_content").html(content[tab]).fadeIn("slow");
}

--
Alex


Reply via email to