Yes quite right, you could use routeEvent(), but as you point out it
won't work with DynAPI because routeEvent() ignores the event path and
sends the event directly to the link. This would mean that none of the
link's parent layers would register the event.
Given the current architecture of the DynAPI event model, the only way
you can force the onclick, onmousedown, andonmouseup events
from a link in NS is to use e.target.handleEvent(e).
Cheers
Chris
-----Original Message-----
From: Joachim Lundgren [mailto:[EMAIL PROTECTED]]
Sent: Sunday, 15 July 2001 5:53 AM
To: [EMAIL PROTECTED]
Subject: RE: [Dynapi-Help] NS4 link/event cancelling [Was: (no subject)]
At 2001-07-13 08:00, Chris Williams wrote:
>The only way you can force the onclick, onmousedown, andonmouseup
events
>from a link in NS is to use e.target.handleEvent(e).
>
>The reason for this is that events flow from browser to page objects,
as
>opposed to IE where events flow from page objects to browser.
Not entirely true, there is routeEvent() too. If you want to see it in
code look at DHTMLLib from SiteExperts
(http://www.siteexperts.com/dhtmllib/page1.asp).
In my own code that is what I use and for some reason I don't feel up to
rewriting all of DynAPI's event code :-)
/Lunna
_______________________________________________
Dynapi-Help mailing list
[EMAIL PROTECTED]
http://lists.sourceforge.net/lists/listinfo/dynapi-help
_______________________________________________
Dynapi-Help mailing list
[EMAIL PROTECTED]
http://lists.sourceforge.net/lists/listinfo/dynapi-help