[Javascript] Strange margins with scriptaculous
Mike Dougherty
mdougherty at pbp.com
Mon Jan 8 18:37:45 CST 2007
On Mon, 8 Jan 2007 22:18:48 +0100
Frank Arensmeier <frank.arensmeier at nikehydraulics.se> wrote:
> CLAI - thats what I ment. Weird, because Explorer (6 at least) does not seem to suffer from
>this problem. I think there must be a way to cancel an slide down effect. I read somewhere about
>the function .cancel(). I tried to assign the slide down effect like
> myEffect = new Effect.SlideDown(divId, {duration:1});
>
> When hitting the show/hide image again I have a myEffect.cancel(); in my java script. But this
>does not seem to have the desired effect (=cancel and unset the current effect object).
>
> I will get back when I have a solution.
ie: cancelBubble
else: stopPropagation
see this: http://www.quirksmode.org/js/events_order.html
'hope it helps
More information about the Javascript
mailing list