Hi Juan,

Thanks for the response, this is definitely a possibility for me. Am
also going to try Thiago's answer to Tim's question on calling Tap from
plain javascript.

Cheers Richard.


-----Original Message-----
From: Juan E. Maya <maya.j...@gmail.com>
Reply-to: "Tapestry users" <users@tapestry.apache.org>
To: Tapestry users <users@tapestry.apache.org>, r...@su3analytics.com
Subject: Re: Adding a user-defined function to onclick of t:actionlink
Date: Wed, 8 Dec 2010 16:07:08 +0100

Richard, u could observe the Tapestry.ZONE_UPDATED_EVENT event that
tapestry raises whenever a zone is updated as explained on
http://tapestry.apache.org/tapestry5.1/tapestry-core/ref/org/apache/tapestry5/corelib/components/Zone.html



On Wed, Dec 8, 2010 at 3:30 PM, Richard Hill <r...@su3analytics.com> wrote:
> Hi All,
>
> I have an t:actionlink in a t:loop that triggers a zone update. This
> zone is a page overlay and is initially hidden, that is style =
> visibility: hidden.
>
> On user-click, the zone updates, and then I want it to be rendered
> visible. Ideally I'd like just to change the style to visibility:
> visible using my own .js function. However if I define an onclick method
> tapestry clobbers this, rather than adding to it.
>
> I realise I can achieve this functionality with a Mixin, but this seems
> overkill for such a simple need. As I workaround I have a <script> at
> the bottom of the zone - this is executed on update, and renders the
> zone visible.
>
> However, I don't know which link in my results loop triggered the zone
> update, which would be very handy. (If I could add my own function to
> onlick i could do myFunction(this)). Again I can work around, but was
> wondering if anyone had a simple/elegant solution to adding user
> functions to onclick?
>
> Thanks Richard.
>
>
>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org
> For additional commands, e-mail: users-h...@tapestry.apache.org
>
>

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




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

Reply via email to