> The Zone raises a JS event when is updated.

You're right, my bad. I was looking at the form injector when I
replied. It doesn't raise an event and so I used the show hack. I'm
using ZONE_UPDATED_EVENT for my zones...

Josh

On Sat, Dec 5, 2009 at 1:35 AM, Juan E. Maya <maya.j...@gmail.com> wrote:
> The Zone raises a JS event when is updated. This is explained in the
> Zone documentation:
>
> http://tapestry.apache.org/tapestry5/tapestry-core/ref/org/apache/tapestry5/corelib/components/Zone.html
>
> "After the client-side content is updated, a client-side event is
> fired on the zone's element. The constant Tapestry.ZONE_UPDATED_EVENT
> can be used to listen to the event."
>
> You just need to provide a Prototype listener for that event in your page.
>
> On Sat, Dec 5, 2009 at 7:04 AM, Ashwanth Kumar <ashwanth.ku...@gmail.com> 
> wrote:
>> Thanks Josh,
>>
>> That worked like a charm!! I dont know if there could be anything better
>> than this?? :)
>>
>>  - Ashwanth Kumar
>>
>>
>> On 12/5/09, Josh Canfield <j...@thedailytube.com> wrote:
>>>
>>> Last time I was hunting around for a solution for this I came up with this:
>>>
>>> Tapestry.ElementEffect.myshowfunc = function(element) {
>>>    // do special stuff
>>>    return new Effect.Highlight(element);
>>> }
>>>
>>> <t:zone show="myshowfunc"/>
>>>
>>> There may be a better method that I'm not aware of though.
>>>
>>> Josh
>>>
>>> On Fri, Dec 4, 2009 at 5:04 PM, Ashwanth Kumar <ashwanth.ku...@gmail.com>
>>> wrote:
>>> > Hi,
>>> >
>>> > I've a question. How do i invoke a custom JS from the Page, immediately
>>> > after a ZoneUpate!
>>> > For instance, i need to apply a markitUp on a TextArea, after it has been
>>> > created by the ZoneUpdate event in Tapestry.
>>> >
>>> > How do i invoke it sync with the ZoneUpdate. Currently i use the onClick
>>> > event of the TextArea to show, but its not good enough. So, asny help
>>> > regarding this would be appreciated!
>>> >
>>> >  - Ashwanth Kumar
>>> >
>>>
>>>
>>>
>>> --
>>> --
>>> TheDailyTube.com. Sign up and get the best new videos on the internet
>>> delivered fresh to your inbox.
>>>
>>> ---------------------------------------------------------------------
>>> 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
>
>



-- 
--
TheDailyTube.com. Sign up and get the best new videos on the internet
delivered fresh to your inbox.

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

Reply via email to