Re: confirmation javascript in ajaxformloop

2011-06-30 Thread Ernesto Badillo
Thanks a lot! Very simple workaround. I don't know why it didn't occur to me. On Thu, Jun 30, 2011 at 1:22 PM, Kalle Korhonen wrote: > This has been discussed a few times. The right way would be to use > event propagation as intended, for example: > Remove > > Then add a handler for the nested el

Re: confirmation javascript in ajaxformloop

2011-06-30 Thread Kalle Korhonen
This has been discussed a few times. The right way would be to use event propagation as intended, for example: Remove Then add a handler for the nested element: Event.observe($('confirmRemoval'), 'click', function(event) {if (!confirm('are you sure to want to remove?')) event.stop();}); to stop th