You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tapestry.apache.org by immutability <de...@bielik.org> on 2008/08/07 15:40:23 UTC

T5: Zone - disabling yellow background animation on reload

Here I go again! :) Another problem I'm facing is with the Zone component. I
like that the AJAX works nicely out-of-the-box with T5 components, such as
ActionLink and Zone, without writing a single line of client-side script.

The problem that I'm facing is the yellow-to-white (or whatever background
color the zone is using) animation that always appears when a Zone is
updated. It is a nice thing, but I'd like to be able to disable it for one
of my zones. There are 2 reasons for this:

1. This zone contains some graphical elements, and it just doesn't look good
2. When you click the ActionLinks that update this zone in a quick sequence,
the animation gets broken and the background will remain yellow (or stuck in
some shade of yellow, depending on how fast you click the ActionLinks)

I guess that to customize or disable this animation, some client-side script
hack or something similar will be needed, but I couldn't find any examples
or how-tos. Can anyone help?

Thank you guys!
Rado
-- 
View this message in context: http://www.nabble.com/T5%3A-Zone---disabling-yellow-background-animation-on-reload-tp18870719p18870719.html
Sent from the Tapestry - User mailing list archive at Nabble.com.


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
For additional commands, e-mail: users-help@tapestry.apache.org


Re: T5: Zone - disabling yellow background animation on reload

Posted by immutability <de...@bielik.org>.
Thanks a bunch! That was it. Even though I couldn't find any documentation on
ElementEffect, it was easy to locate in the tapestry.js file to see possible
values. So using the following attributes for the Zone disabled the default
"highlight" animation:

<t:zone t:id="myZone" show="show" update="show" />

Thanks again,
Rado



ciaranw wrote:
> 
> This one's easy - you provide an effect name as a parameter to the zone:
> <t:zone t:id="myZone" show="slidedown">...
> 
> Have a look here for reference:
> http://tapestry.formos.com/nightly/tapestry5/tapestry-core/ref/org/apache/ta
> pestry5/corelib/components/Zone.html
> 
> Ciaran
> 
> 
> 
> On 07/08/2008 2:40pm, "immutability" <de...@bielik.org> wrote:
> 
>> 
>> Here I go again! :) Another problem I'm facing is with the Zone
>> component. I
>> like that the AJAX works nicely out-of-the-box with T5 components, such
>> as
>> ActionLink and Zone, without writing a single line of client-side script.
>> 
>> The problem that I'm facing is the yellow-to-white (or whatever
>> background
>> color the zone is using) animation that always appears when a Zone is
>> updated. It is a nice thing, but I'd like to be able to disable it for
>> one
>> of my zones. There are 2 reasons for this:
>> 
>> 1. This zone contains some graphical elements, and it just doesn't look
>> good
>> 2. When you click the ActionLinks that update this zone in a quick
>> sequence,
>> the animation gets broken and the background will remain yellow (or stuck
>> in
>> some shade of yellow, depending on how fast you click the ActionLinks)
>> 
>> I guess that to customize or disable this animation, some client-side
>> script
>> hack or something similar will be needed, but I couldn't find any
>> examples
>> or how-tos. Can anyone help?
>> 
>> Thank you guys!
>> Rado
> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
> For additional commands, e-mail: users-help@tapestry.apache.org
> 
> 
> 

-- 
View this message in context: http://www.nabble.com/T5%3A-Zone---disabling-yellow-background-animation-on-reload-tp18870719p18871185.html
Sent from the Tapestry - User mailing list archive at Nabble.com.


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
For additional commands, e-mail: users-help@tapestry.apache.org


Re: T5: Zone - disabling yellow background animation on reload

Posted by Ciaran Wood <ci...@gamesys.co.uk>.
This one's easy - you provide an effect name as a parameter to the zone:
<t:zone t:id="myZone" show="slidedown">...

Have a look here for reference:
http://tapestry.formos.com/nightly/tapestry5/tapestry-core/ref/org/apache/ta
pestry5/corelib/components/Zone.html

Ciaran



On 07/08/2008 2:40pm, "immutability" <de...@bielik.org> wrote:

> 
> Here I go again! :) Another problem I'm facing is with the Zone component. I
> like that the AJAX works nicely out-of-the-box with T5 components, such as
> ActionLink and Zone, without writing a single line of client-side script.
> 
> The problem that I'm facing is the yellow-to-white (or whatever background
> color the zone is using) animation that always appears when a Zone is
> updated. It is a nice thing, but I'd like to be able to disable it for one
> of my zones. There are 2 reasons for this:
> 
> 1. This zone contains some graphical elements, and it just doesn't look good
> 2. When you click the ActionLinks that update this zone in a quick sequence,
> the animation gets broken and the background will remain yellow (or stuck in
> some shade of yellow, depending on how fast you click the ActionLinks)
> 
> I guess that to customize or disable this animation, some client-side script
> hack or something similar will be needed, but I couldn't find any examples
> or how-tos. Can anyone help?
> 
> Thank you guys!
> Rado


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
For additional commands, e-mail: users-help@tapestry.apache.org