You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tapestry.apache.org by Nathan Quirynen <na...@pensionarchitects.be> on 2014/02/20 13:52:29 UTC
5.4 javascript events
Hey,
In my Tapestry 5.3.7 application I made use of
Tapestry.ZONE_UPDATED_EVENT to fire some javascript on a zone update.
Now I'm using Tapestry 5.4-beta-3 in a new application, but I cannot get
it to work. Is this supposed to still work, or is there a new way of
handling this?
$("#zoneTest").bind(Tapestry.ZONE_UPDATED_EVENT, function() {
console.log('test');
}
Nathan
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
For additional commands, e-mail: users-help@tapestry.apache.org
Re: 5.4 javascript events
Posted by Nathan Quirynen <na...@pensionarchitects.be>.
Thanks, just what I needed :)
On 20/02/14 14:00, Dragan Sahpaski wrote:
> On Thu, Feb 20, 2014 at 1:59 PM, Dragan Sahpaski
> <dr...@gmail.com>wrote:
>
>> You need to requre the events module and listen to events.zone.update or
>> without the events module dependency just "t5:zone:update".
>> The global Tapestry namespace (from 5.3) is replaced various with requrejs
>> modules.
>>
> I meant the global Tapestry object of course.
>
>
>
>> Excerpt from events.js
>> zone: {
>> update: "t5:zone:update",
>> willUpdate: "t5:zone:will-update",
>> didUpdate: "t5:zone:did-update",
>> refresh: "t5:zone:refresh"
>> },
>>
>>
>> Cheers,
>> Dragan Sahpaski
>>
>>
>> On Thu, Feb 20, 2014 at 1:52 PM, Nathan Quirynen <
>> nathan@pensionarchitects.be> wrote:
>>
>>> Hey,
>>>
>>> In my Tapestry 5.3.7 application I made use of
>>> Tapestry.ZONE_UPDATED_EVENT to fire some javascript on a zone update.
>>> Now I'm using Tapestry 5.4-beta-3 in a new application, but I cannot get
>>> it to work. Is this supposed to still work, or is there a new way of
>>> handling this?
>>>
>>> $("#zoneTest").bind(Tapestry.ZONE_UPDATED_EVENT, function() {
>>> console.log('test');
>>> }
>>>
>>> Nathan
>>>
>>> ---------------------------------------------------------------------
>>> To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
>>> For additional commands, e-mail: users-help@tapestry.apache.org
>>>
>>>
--
Een klare kijk op aanvullende pensioenen
*Nathan Quirynen*
03 340 04 60 | 0494 28 45 15
nathan@pensionarchitects.be <ma...@pensionarchitects.be>
Follow us on Web <http://www.pensionarchitects.be> | Twitter
<http://www.twitter.com/pen_arch> | LinkedIn
<http://www.linkedin.com/company/pension-architects> | RSS
<http://feeds.feedburner.com/pensionarchitects> | YouTube
<http://www.youtube.com/pensionarchitects>
Re: 5.4 javascript events
Posted by Dragan Sahpaski <dr...@gmail.com>.
On Thu, Feb 20, 2014 at 1:59 PM, Dragan Sahpaski
<dr...@gmail.com>wrote:
> You need to requre the events module and listen to events.zone.update or
> without the events module dependency just "t5:zone:update".
> The global Tapestry namespace (from 5.3) is replaced various with requrejs
> modules.
>
I meant the global Tapestry object of course.
>
> Excerpt from events.js
> zone: {
> update: "t5:zone:update",
> willUpdate: "t5:zone:will-update",
> didUpdate: "t5:zone:did-update",
> refresh: "t5:zone:refresh"
> },
>
>
> Cheers,
> Dragan Sahpaski
>
>
> On Thu, Feb 20, 2014 at 1:52 PM, Nathan Quirynen <
> nathan@pensionarchitects.be> wrote:
>
>> Hey,
>>
>> In my Tapestry 5.3.7 application I made use of
>> Tapestry.ZONE_UPDATED_EVENT to fire some javascript on a zone update.
>> Now I'm using Tapestry 5.4-beta-3 in a new application, but I cannot get
>> it to work. Is this supposed to still work, or is there a new way of
>> handling this?
>>
>> $("#zoneTest").bind(Tapestry.ZONE_UPDATED_EVENT, function() {
>> console.log('test');
>> }
>>
>> Nathan
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
>> For additional commands, e-mail: users-help@tapestry.apache.org
>>
>>
>
Re: 5.4 javascript events
Posted by Dragan Sahpaski <dr...@gmail.com>.
You need to requre the events module and listen to events.zone.update or
without the events module dependency just "t5:zone:update".
The global Tapestry namespace (from 5.3) is replaced various with requrejs
modules.
Excerpt from events.js
zone: {
update: "t5:zone:update",
willUpdate: "t5:zone:will-update",
didUpdate: "t5:zone:did-update",
refresh: "t5:zone:refresh"
},
Cheers,
Dragan Sahpaski
On Thu, Feb 20, 2014 at 1:52 PM, Nathan Quirynen <
nathan@pensionarchitects.be> wrote:
> Hey,
>
> In my Tapestry 5.3.7 application I made use of
> Tapestry.ZONE_UPDATED_EVENT to fire some javascript on a zone update.
> Now I'm using Tapestry 5.4-beta-3 in a new application, but I cannot get
> it to work. Is this supposed to still work, or is there a new way of
> handling this?
>
> $("#zoneTest").bind(Tapestry.ZONE_UPDATED_EVENT, function() {
> console.log('test');
> }
>
> Nathan
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
> For additional commands, e-mail: users-help@tapestry.apache.org
>
>