Hmm. I didn't know about the pause function. I may end up having to go that route. It's still a little disappointing, though. The logic I would have preferred is:
if Button1 is clicked if Form2 is visible hide it then reveal Form1 else Reveal Form1 end end if Button2 is clicked if Form1 is visible Hide it then reveal Form2 else Reveal Form2 end end Know what I mean? On Jul 13, 5:09 pm, "Glen Lipka" <[EMAIL PROTECTED]> wrote: > 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/