jQuery uses a concept of "callbacks".  These basically say, "Dont do the
next step until the animation is finished."

This demo is one I made the other day.
http://www.commadot.com/jquery/nextrow/toggle.htm#

 $("a#controller").click( function() {

   $("div.box:visible").slideUp("slow",function(){
     //alert("Animation Done.");
     $("div.box").load("text.htm",
       function() {
         $("div.box").pause(200).slideDown("medium");
       }
     );
   });


 } );



Notice how on the SlideUp function, I have a callback right after it.  This
makes it wait.
Additionally, I used the pause plugin to wait an additional 200ms, because
0ms, seemed too abrubt.

Based on your example, I think this would work for you.

Glen

On 7/13/07, navvywavvy <[EMAIL PROTECTED]> wrote:


Okay, here is an example:

http://cotworld.com/jquery-test/


Reply via email to