Re: T5 actionlink, ajax zone and user onclick handler

2009-12-05 Thread Kalle Korhonen
On Tue, Apr 29, 2008 at 9:14 AM, Chris Lewis wrote: > Unfortunately I can't think of a clean workaround for that. The issues > are all in the javascript and how events are dispatched and handled. > Basically it comes down to 2 problems: This is an old thread but found it when I run into a similar

Re: T5 actionlink, ajax zone and user onclick handler

2008-05-02 Thread Tobias Wehrum
Hi Chris, while not in this much detail, I also thought that the DOM events may cause this problem. Pity even you don't know what to do. Thanks for your answer, Tobias Chris Lewis schrieb: Hi Tobias, Unfortunately I can't think of a clean workaround for that. The issues are all in the javas

Re: T5 actionlink, ajax zone and user onclick handler

2008-04-29 Thread Chris Lewis
Hi Tobias, Unfortunately I can't think of a clean workaround for that. The issues are all in the javascript and how events are dispatched and handled. Basically it comes down to 2 problems: 1) The W3C does not mandate even handler ordering, so if you register a handler before another there is no

Re: T5 actionlink, ajax zone and user onclick handler

2008-04-29 Thread Tobias Wehrum
Hi Chris, first let me please thank you for the example you've written. It's quite informative. I've discovered a problem with updating a zone - I think it's no problem of your mixin, but you may have an idea how to fix it. The problem is: When I use have an actionlink with the confirm mixi

Re: T5 actionlink, ajax zone and user onclick handler

2008-04-22 Thread Chris Lewis
the urge to write more. > > Andy. > > >> -Original Message- >> From: Luca Fossato [mailto:[EMAIL PROTECTED] >> Sent: 19 April 2008 22:30 >> To: Tapestry users >> Subject: Re: T5 actionlink, ajax zone and user onclick handler >> >> Hi

Re: T5 actionlink, ajax zone and user onclick handler

2008-04-22 Thread Filip S. Adamsen
Umm, that's exactly what Tapestry does... -Filip zack1403 skrev: Why doesnt tapestry attach events to the DOM instead of using onClick? Zack Chris Lewis-5 wrote: Hi Lucca, I'd been looking for a good example to use to write a wiki explaining the integration javascript by Tapestry, and your

Re: T5 actionlink, ajax zone and user onclick handler

2008-04-22 Thread Chris Lewis
I don't understand - it uses the modern DOM events system, abstracted (partially) by tapestry.js, and further abstracted by the underlying prototype.js library. What is it you are asking? zack1403 wrote: > Why doesnt tapestry attach events to the DOM instead of using onClick? > > Zack > > > Chris

Re: T5 actionlink, ajax zone and user onclick handler

2008-04-21 Thread zack1403
Why doesnt tapestry attach events to the DOM instead of using onClick? Zack Chris Lewis-5 wrote: > > Hi Lucca, > > I'd been looking for a good example to use to write a wiki explaining > the integration javascript by Tapestry, and your request gave me what I > was looking for. Check out the a

RE: T5 actionlink, ajax zone and user onclick handler

2008-04-21 Thread Blower, Andy
ril 2008 22:30 > To: Tapestry users > Subject: Re: T5 actionlink, ajax zone and user onclick handler > > Hi Chris, > > thank you ! > > I will read your article and I will try to use the mixin to implement > the confirmation dialog for my "delete" actionLink.

Re: Re : T5 actionlink, ajax zone and user onclick handler

2008-04-20 Thread Chris Lewis
Tapestry users > Envoyé le : Samedi, 19 Avril 2008, 23h30mn 17s > Objet : Re: T5 actionlink, ajax zone and user onclick handler > > Hi Chris, > > thank you ! > > I will read your article and I will try to use the mixin to implement > the confirmation dialog for my &

Re : T5 actionlink, ajax zone and user onclick handler

2008-04-20 Thread Julien HENRY
stry users Envoyé le : Samedi, 19 Avril 2008, 23h30mn 17s Objet : Re: T5 actionlink, ajax zone and user onclick handler Hi Chris, thank you ! I will read your article and I will try to use the mixin to implement the confirmation dialog for my "delete" actionLink. Give me some days

Re: T5 actionlink, ajax zone and user onclick handler

2008-04-19 Thread Luca Fossato
Hi Chris, thank you ! I will read your article and I will try to use the mixin to implement the confirmation dialog for my "delete" actionLink. Give me some days to digest all this stuff and to implement it into my test application ;^) Regards, Luca Chris Lewis wrote: Hi Lucca, I'd been l

Re: T5 actionlink, ajax zone and user onclick handler

2008-04-18 Thread Chris Lewis
Hi Lucca, I'd been looking for a good example to use to write a wiki explaining the integration javascript by Tapestry, and your request gave me what I was looking for. Check out the article here: http://wiki.apache.org/tapestry/Tapestry5AndJavaScriptExplained (project source: http://thegodcode.ne

Re : T5 actionlink, ajax zone and user onclick handler

2008-04-16 Thread Julien HENRY
Hi, Instead of trying to deal with onclick html attribute you should use DOM lvl 2 events: http://www.prototypejs.org/api/event/observe The following JavaScript should work (not tested): Event.observe($('deleteLink'), 'click', function(event) {confirm('are you sure to delete this record ?')});