Prototype delay function supported?

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
3 messages Options
Reply | Threaded
Open this post in threaded view
|

Prototype delay function supported?

Bart Gauquie
Dear all,

is the Prototype delay function supported in Seaside? (http://www.prototypejs.org/api/function/delay)

I want for instance do the following: create a fast fade on an element, then delay for 3 seconds and then fade out the element again.

fading in and out by:
(html scriptaculous effect
    id: 'notifications';
    duration: 0.5;
    appear),  
(html scriptaculous effect
    id: 'notifications';
    duration: 2.0;
    fade)

I want the fade to happen only after for instance 3 seconds. Is there a way to do this?

I'm using Seaside 3.0.

Thanks for any advice,

Kind Regards,

Bart

-- 
imagination is more important than knowledge - Albert Einstein
Logic will get you from A to B. Imagination will take you everywhere - Albert Einstein
Learn from yesterday, live for today, hope for tomorrow. The important thing is not to stop questioning. - Albert Einstein
The true sign of intelligence is not knowledge but imagination. - Albert Einstein
However beautiful the strategy, you should occasionally look at the results. - Sir Winston Churchill
It's not enough that we do our best; sometimes we have to do what's required. - Sir Winston Churchill

_______________________________________________
seaside mailing list
[hidden email]
http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside
Reply | Threaded
Open this post in threaded view
|

Re: Prototype delay function supported?

Lukas Renggli
Not directly, but you can use the timeout functionality of JavaScript, e.g.

html scriptaculous effect
    id: 'notifications';
    duration: 2.0;
    fade;
    timeout: 3 seconds

Lukas

2010/1/3 Bart Gauquie <[hidden email]>:

> Dear all,
>
> is the Prototype delay function supported in Seaside?
> (http://www.prototypejs.org/api/function/delay)
> I want for instance do the following: create a fast fade on an element, then
> delay for 3 seconds and then fade out the element again.
> fading in and out by:
> (html scriptaculous effect
>     id: 'notifications';
>     duration: 0.5;
>     appear),
> (html scriptaculous effect
>     id: 'notifications';
>     duration: 2.0;
>     fade)
>
> I want the fade to happen only after for instance 3 seconds. Is there a way
> to do this?
> I'm using Seaside 3.0.
>
> Thanks for any advice,
> Kind Regards,
> Bart
> --
> imagination is more important than knowledge - Albert Einstein
> Logic will get you from A to B. Imagination will take you everywhere -
> Albert Einstein
> Learn from yesterday, live for today, hope for tomorrow. The important thing
> is not to stop questioning. - Albert Einstein
> The true sign of intelligence is not knowledge but imagination. - Albert
> Einstein
> However beautiful the strategy, you should occasionally look at the results.
> - Sir Winston Churchill
> It's not enough that we do our best; sometimes we have to do what's
> required. - Sir Winston Churchill
>
> _______________________________________________
> seaside mailing list
> [hidden email]
> http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside
>
>



--
Lukas Renggli
http://www.lukas-renggli.ch
_______________________________________________
seaside mailing list
[hidden email]
http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside
Reply | Threaded
Open this post in threaded view
|

Re: Prototype delay function supported?

Bart Gauquie
Thanks Lukas, works like a charm.

Kind Regards,

Bart

On Sun, Jan 3, 2010 at 9:08 PM, Lukas Renggli <[hidden email]> wrote:
Not directly, but you can use the timeout functionality of JavaScript, e.g.

html scriptaculous effect
   id: 'notifications';
   duration: 2.0;
   fade;
   timeout: 3 seconds

  --
Lukas Renggli
http://www.lukas-renggli.ch
_______________________________________________
 


_______________________________________________
seaside mailing list
[hidden email]
http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside