I think I figured out the problem.
@Ricardo - yeah I agree there shouldn't be a conflict. I'm not using
any other scripts.
@fredrik - I had tried having the callback call a separate function,
didn't work.
What seemed to be the issue was that I was doing the effect animations
on an iframe load:
$(iframe).load(function(){
$(element).slideUp(500, function(){
$(element).slideDown(500);
});
});
The time it took the iframe to load seemed to dictate whether the
animation would slide or jump. I ended up taking out the load() and
just using setTimeout().
Thanks for the responses.
On Jun 24, 3:48 am, fredrik <[email protected]> wrote:
> If there's some kinda conflict test to make an extracallbackcall,
> ie.
>
> function doSlideDown(){
> $("#externalform").slideDown(500);
>
> }
>
> $("#pageWrap").slideUp(1000, function(){
> doSlideDown();
> $("#btn_uopBack").fadeIn(250);
>
> })
>
> ..fredrik
>
> On Jun 23, 8:52 pm, Matthew <[email protected]> wrote:
>
> > Hi all,
> > I am trying toslideUpa container Div and using theslideUp's
> >callbackparameter call slideDown on a different element that is not
> > inside theslideUpcontainer Div:
>
> > $("#pageWrap").slideUp(1000, function(){
> > $("#externalform").slideDown(500);
> > $("#btn_uopBack").fadeIn(250);
>
> > });
>
> > One again all the elements being used with the effects are not
> > children or parents of each other.
>
> > The problem seems to be that when you call a slideDown orslideUp
> > inside aslideUpor slideDowncallbackthe intial effect does not
> > work. So in my above example the $("#pageWrap").slideUpjust jumps up
> > without a slide. I need thecallbackso I can have the effects happen
> > after the initialslideUp. Since I'm calling effects on different
> > elements I can't do the dot chain. Any other way to make this happen?
> > I'd like to avoid settimeout() if possible.
>
> > ~ Matthew