one drawback i just found out: this breaks the contextmenu, it doesn't
appear anymore. seems that ns5 (or ns6, or moz or however) relies on
javascript for it.
> From: Michael B=FCrge <mb...@st...>
> Reply-To: dyn...@li...
> Date: Sat, 03 Feb 2001 21:01:04 +0100
> To: <dyn...@li...>
> Subject: [Dynapi-Dev] mulfiple events in ns5
>=20
> in ns5 there has long been the problem that the events got fired multiple
> times, this is because the event bubbles up the DOM, firing for all
> parent-layers and the document as well. the target property of the event-=
obj
> contains the element which originally fired it, thats why the same
> eventListener ist called multiple times.
> but: ns5's event-obj has a cancelBubble property, so by making a small
> change to DynLayer.prototype.EventMethod, the event is fired only once (l=
ike
> it shoud).
>=20
> DynLayer.prototype.EventMethod =3D function(e) {
> var dyndoc=3Dthis.lyrobj.dyndoc;
> if (is.ie) {
> [ ...] =20
> }
> else if (is.ns5) {
> e.cancelBubble =3D true;
> }
> [ ... ]
> };
>=20
>=20
> tested in mozilla 0.7 and NN6 on a mac.
>=20
> --
> // Michael Buerge
>=20
>=20
> _______________________________________________
> Dynapi-Dev mailing list
> Dyn...@li...
> http://lists.sourceforge.net/lists/listinfo/dynapi-dev
>=20
|