[jQuery] Re: how to animate two divs' position smoothly at the same time

2007-07-08 Thread eddy
Hi, I saw your demo,Thank you! But there's too much recursion error.How to resolve it? On 7月5日, 下午12时36分, "Glen Lipka" <[EMAIL PROTECTED]> wrote: > I tried to make a demo.http://www.commadot.com/jquery/animate/ > > How come I get an infinite too much recursion error loop? > > Glen > > On 7/4/0

[jQuery] Re: how to animate two divs' position smoothly at the same time

2007-07-06 Thread Rhapidophyllum
You don't have to do anything...that would be the default behavior. Your code starts the animation, and while the animation occurs, the code doesn't stop, it keeps executing. (GTG says this in the 1st paragraph.) RH On Jul 5, 2007, at 11:24 PM, eddy wrote: Thank you! But you only explain a f

[jQuery] Re: how to animate two divs' position smoothly at the same time

2007-07-05 Thread eddy
Thank you! But you only explain a fact to me. I hope you will tell me how to do some logic while animation is in progress! On 7月6日, 上午2时59分, "Ganeshji Marwaha" <[EMAIL PROTECTED]> wrote: > I guess, the animation process happens behind the scenes. So, if you > want to do some logic while animation

[jQuery] Re: how to animate two divs' position smoothly at the same time

2007-07-05 Thread Ganeshji Marwaha
Strange... Will try it when i get back home today... -GTG On 7/4/07, Glen Lipka <[EMAIL PROTECTED]> wrote: I tried to make a demo. http://www.commadot.com/jquery/animate/ How come I get an infinite too much recursion error loop? Glen On 7/4/07, Ganeshji Marwaha <[EMAIL PROTECTED]> wrote: >

[jQuery] Re: how to animate two divs' position smoothly at the same time

2007-07-05 Thread Ganeshji Marwaha
I guess, the animation process happens behind the scenes. So, if you want to do some logic while animation is in progress, all you need to do is to add it to the next line after the animation code. But, if your requirement is to do some logic after the animation ends, then you will have to supply

[jQuery] Re: how to animate two divs' position smoothly at the same time

2007-07-05 Thread eddy
Thank you! Could you tell me how to do another event while animate? On 7月5日, 下午12时12分, "Ganeshji Marwaha" <[EMAIL PROTECTED]> wrote: > select both and animate... like this... > > $("#first, #second").animate(...); > > I believe john once said that, the same timer is used for all the elements > if

[jQuery] Re: how to animate two divs' position smoothly at the same time

2007-07-04 Thread eddy
Thank you! But I can not open the URL,could you paste your code here? On 7月5日, 下午12时36分, "Glen Lipka" <[EMAIL PROTECTED]> wrote: > I tried to make a demo.http://www.commadot.com/jquery/animate/ > > How come I get an infinite too much recursion error loop? > > Glen > > On 7/4/07, Ganeshji Marwaha

[jQuery] Re: how to animate two divs' position smoothly at the same time

2007-07-04 Thread Glen Lipka
I tried to make a demo. http://www.commadot.com/jquery/animate/ How come I get an infinite too much recursion error loop? Glen On 7/4/07, Ganeshji Marwaha <[EMAIL PROTECTED]> wrote: select both and animate... like this... $("#first, #second").animate(...); I believe john once said that, the

[jQuery] Re: how to animate two divs' position smoothly at the same time

2007-07-04 Thread Ganeshji Marwaha
select both and animate... like this... $("#first, #second").animate(...); I believe john once said that, the same timer is used for all the elements if specified this way... so, you might not have problems with smoothness.. -GTG On 7/4/07, eddy <[EMAIL PROTECTED]> wrote: There're two divs