[Proto-Scripty] Calling more than one effect fails (script.aculo.us)

2009-07-25 Thread bill

Hi,

I'm new in using javascript and script.aculo.us so please patient with
me =)

I guess the best thing to do is to start with some code:


function start()
{
Effect.Pulsate('warning', { pulses: 5, duration: 4 , 
from: 0.4});
Effect.Fade('info', { duration: 6});
}





Some info text



Some warning text


I guess it's pretty obvious what I'm trying to do: after the page is
loaded, I want to start trigger two effects for the boxes "info" and
"warning". But non of the effect actually happen. If I just try to
start one effect (I deleting one of function calls in start()) the
remaining one is executed as expected.

So why aren't both working at the same time?

Thank you for any advice,
bill

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"Prototype & script.aculo.us" group.
To post to this group, send email to prototype-scriptaculous@googlegroups.com
To unsubscribe from this group, send email to 
prototype-scriptaculous+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/prototype-scriptaculous?hl=en
-~--~~~~--~~--~--~---



[Proto-Scripty] Calling more than one effect fails (script.aculo.us) - Correction

2009-07-25 Thread bill

Hi,

sorry for this second post. I just observed something new. The problem
is, if I call two effect functions and there is no div for the first,
the second won't be executed. If both exist, both will be executed.
Can I somehow check if a related div exists or start both function no
matter if divs exists?

Thank you,
bill

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"Prototype & script.aculo.us" group.
To post to this group, send email to prototype-scriptaculous@googlegroups.com
To unsubscribe from this group, send email to 
prototype-scriptaculous+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/prototype-scriptaculous?hl=en
-~--~~~~--~~--~--~---