Thanks Josh, you led me to the answer. As you said, e.stop() stops bubble-up,
so all I had to do was move the Confirm to an element within the EvenLink. I
replaced this...
Delete...
with this...
Delete...
and
Whoops, I was looking at an old version of tapestry.js, back when they
onclick function was replaced and there wasn't the observe.
You can look at the code for stopObserving in prototype.js... but, you
really can't know what order the events are going to get fired in so
you can't just remove it fr
I see what you mean. The "Tapestry.waitForPage(event)" is not a problem. The
real problem is that Tapestry.init (which is added to the bottom of the page
after "new Confirm(...)") sets up the linkZone, part of which is adding
"element.observe("click", function(event) { some XHR stuff happens her
event.stop() prevents bubbling up to parent elements, but I don't
believe you can prevent other event handlers from firing (you can test
to see if the event.stopped property is set but it's up to the other
events to implement the check).
That said, the linkZone method sets the onclick function on
I'm not doing that - Tapestry is when it adds zone support.
On 14/05/2010, at 10:54 AM, Paul Stanton wrote:
> just as an aside, you don't need to prefix your onclick with 'javascript:'
>
> Geoff Callender wrote:
>> > shape="rect" href="./simplewithzone:delete">Delete...
>>
>
> --
just as an aside, you don't need to prefix your onclick with 'javascript:'
Geoff Callender wrote:
Delete...
-
To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org
For additional commands, e-mail: users-h...
On Thu, 13 May 2010 21:22:25 -0300, Geoff Callender
wrote:
shape="rect" href="./simplewithzone:delete">Delete...
I'm no JavaScript guru (very far from that, actually), but have you tried
setting onclick to null?
--
Thiago H. de Paula Figueiredo
Independent Java, Apache Tapestry 5 and Hi
I have a Confirm mixin that works fine until I put it in a zone. It still pops
up a confirmation dialog but when Cancel is pressed the mixin fails to stop the
event.
My mixin adds javascript that observes the element, but the zone seems to upset
it by adding javascript directly to the element,