Hi all...
I have this function,
function ChangePics() {
Effect.toggle(''d1'',''appear'');
Effect.toggle(''d2'',''appear'');
}
How can I get it to do one after the other, not at the same time?
Thanks,
JIM
--
Jim Hatridge
Linux User #88484
------------------------------------------------------
WartHog Bulletin
Info about new German Stamps
http://www.WartHogBulletin.de
Many Enemies -- Much Honor!
Anti-US Propaganda stamp collection
http://www.manyenemies-muchhonor.info
An American in Bavaria
http://www.gaubodengalerie.de
--~--~---------~--~----~------------~-------~--~----~
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?hl=en
-~----------~----~----~----~------~----~------~--~---
This should do it (coded from scratch, no guarantees...):
function ChangePics(){
Effect.toggle(''d1'',''appear'',{
afterFinish: function()
{ Effect.toggle(''d2'') } });
}
Best,
Thomas
Am 21.02.2007 um 11:02 schrieb James Hatridge:
>
> Hi all...
>
> I have this function,
>
> function ChangePics() {
> Effect.toggle(''d1'',''appear'');
> Effect.toggle(''d2'',''appear'');
> }
>
> How can I get it to do one after the other, not at the same time?
>
> Thanks,
>
> JIM
> --
> Jim Hatridge
> Linux User #88484
>
> ------------------------------------------------------
> WartHog Bulletin
> Info about new German Stamps
> http://www.WartHogBulletin.de
>
> Many Enemies -- Much Honor!
> Anti-US Propaganda stamp collection
> http://www.manyenemies-muchhonor.info
>
> An American in Bavaria
> http://www.gaubodengalerie.de
>
> >
--~--~---------~--~----~------------~-------~--~----~
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?hl=en
-~----------~----~----~----~------~----~------~--~---
It''s a pretty common question that isn''t handled well in the
docs. If
documentation existed, it would be here:
http://wiki.script.aculo.us/scriptaculous/show/EffectQueues
There was a great post at the rails development blog that doesn''t
seem to be accessible any more. Here''s a link to the Google cached
version:
http://72.14.253.104/search?
q=cache:gZkPKp5PJsYJ:www.railsdevelopment.com/2006/01/15/effectqueue/
+script.aculo.us+effect+queues&hl=en&strip=1
The short answer is:
function ChangePics() {
Effect.toggle(''d1'',''appear'');
Effect.toggle(''d2'',''appear'', {queue:
''end''});
}
TAG
On Feb 21, 2007, at 3:02 AM, James Hatridge wrote:
>
> Hi all...
>
> I have this function,
>
> function ChangePics() {
> Effect.toggle(''d1'',''appear'');
> Effect.toggle(''d2'',''appear'');
> }
>
> How can I get it to do one after the other, not at the same time?
>
> Thanks,
>
> JIM
> --
> Jim Hatridge
> Linux User #88484
>
> ------------------------------------------------------
> WartHog Bulletin
> Info about new German Stamps
> http://www.WartHogBulletin.de
>
> Many Enemies -- Much Honor!
> Anti-US Propaganda stamp collection
> http://www.manyenemies-muchhonor.info
>
> An American in Bavaria
> http://www.gaubodengalerie.de
>
> >
--~--~---------~--~----~------------~-------~--~----~
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?hl=en
-~----------~----~----~----~------~----~------~--~---
showMaximizeButton
function ChangePics() {
Effect.toggle(''d1'',''appear'',{afterFinish:function()
{Effect.toggle(''d2'',''appear''); }});
}
--~--~---------~--~----~------------~-------~--~----~
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?hl=en
-~----------~----~----~----~------~----~------~--~---
Hi Thomas et al.. On Wednesday 21 February 2007 19:48, Thomas Fuchs wrote:> This should do it (coded from scratch, no guarantees...): > > function ChangePics(){ > Effect.toggle(''d1'',''appear'',{ afterFinish: function() > { Effect.toggle(''d2'') } }); > } > > Best, > ThomasThis worked! Thanks, JIM> > Am 21.02.2007 um 11:02 schrieb James Hatridge: > > Hi all... > > > > I have this function, > > > > function ChangePics() { > > Effect.toggle(''d1'',''appear''); > > Effect.toggle(''d2'',''appear''); > > } > > > > How can I get it to do one after the other, not at the same time? > > > > Thanks, > > > > JIM > > -- > > Jim Hatridge > > Linux User #88484 > > > > ------------------------------------------------------ > > WartHog Bulletin > > Info about new German Stamps > > http://www.WartHogBulletin.de > > > > Many Enemies -- Much Honor! > > Anti-US Propaganda stamp collection > > http://www.manyenemies-muchhonor.info > > > > An American in Bavaria > > http://www.gaubodengalerie.de > >-- Jim Hatridge Linux User #88484 ------------------------------------------------------ WartHog Bulletin Info about new German Stamps http://www.WartHogBulletin.de Many Enemies -- Much Honor! Anti-US Propaganda stamp collection http://www.manyenemies-muchhonor.info An American in Bavaria http://www.gaubodengalerie.de --~--~---------~--~----~------------~-------~--~----~ 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?hl=en -~----------~----~----~----~------~----~------~--~---