How can I start a second event after I moved a DIV with effect.move()?
I use the function discribed here:
http://wiki.script.aculo.us/scriptaculous/show/Effect.Move
My code looks like:
<script type="text/javascript">
new Effect.Move(articleList,{ x: 100, mode: ''absolute'',
duration:1.5,
afterFinish:alert(''finished'')});
</script>
<div id="articleList">
asdf
</div>
afterFinish:alert(''finished'') comes when the effect starts,
not when
its finish!
The reason for what I need this:
I want to prevent other effect to start, before this move-effect has
finished.
powtac
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"Ruby on Rails: Spinoffs" group.
To post to this group, send email to
rubyonrails-spinoffs-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org
To unsubscribe from this group, send email to
rubyonrails-spinoffs-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org
For more options, visit this group at
http://groups.google.com/group/rubyonrails-spinoffs
-~----------~----~----~----~------~----~------~--~---
afterFinish:function(){ alert(''finished'') }
Am 09.10.2006 um 13:34 schrieb powtac:
>
> How can I start a second event after I moved a DIV with effect.move()?
> I use the function discribed here:
> http://wiki.script.aculo.us/scriptaculous/show/Effect.Move
>
> My code looks like:
>
> <script type="text/javascript">
> new Effect.Move(articleList,{ x: 100, mode: ''absolute'',
duration:1.5,
> afterFinish:alert(''finished'')});
> </script>
>
> <div id="articleList">
> asdf
> </div>
>
>
> afterFinish:alert(''finished'') comes when the effect
starts, not when
> its finish!
>
> The reason for what I need this:
> I want to prevent other effect to start, before this move-effect has
> finished.
>
> powtac
>
>
> >
--
Thomas Fuchs
wollzelle
http://www.wollzelle.com
questentier on AIM
madrobby on irc.freenode.net
http://www.fluxiom.com :: online digital asset management
http://script.aculo.us :: Web 2.0 JavaScript
http://mir.aculo.us :: Where no web developer has gone before
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"Ruby on Rails: Spinoffs" group.
To post to this group, send email to
rubyonrails-spinoffs-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org
To unsubscribe from this group, send email to
rubyonrails-spinoffs-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org
For more options, visit this group at
http://groups.google.com/group/rubyonrails-spinoffs
-~----------~----~----~----~------~----~------~--~---
powtac
2006-Oct-09 11:56 UTC
Re: How to get event after effect.move() is finished? -Fixed!
Thanx! It worx.
My new code:
<script type="text/javascript">
new Effect.Move(articleList,{ x: 100, mode: ''absolute'',
duration:1.5,
afterFinish:function(){alert(''finished'')}});
</script>
<div id="articleList">
asdf
</div>
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"Ruby on Rails: Spinoffs" group.
To post to this group, send email to
rubyonrails-spinoffs-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org
To unsubscribe from this group, send email to
rubyonrails-spinoffs-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org
For more options, visit this group at
http://groups.google.com/group/rubyonrails-spinoffs
-~----------~----~----~----~------~----~------~--~---
Christophe Porteneuve aka TDD
2006-Oct-09 11:59 UTC
Re: How to get event after effect.move() is finished?
Hey there, Look into effect queues: http://blog.railsdevelopment.com/pages/effect/queue/ There''s an example here, where queues are used to make sure that, for each individual item, out-transitions and over-transitions don''t collide: http://tddsworld.com/extrahost/rails-spinoffs/hoverfades.html -- Christophe Porteneuve aka TDD tdd-x+CfDp/qHev2eFz/2MeuCQ@public.gmane.org --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Spinoffs" group. To post to this group, send email to rubyonrails-spinoffs-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-spinoffs-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-spinoffs -~----------~----~----~----~------~----~------~--~---