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ürge <[EMAIL PROTECTED]>
> Reply-To: [EMAIL PROTECTED]
> Date: Sat, 03 Feb 2001 21:01:04 +0100
> To: <[EMAIL PROTECTED]>
> Subject: [Dynapi-Dev] mulfiple events in ns5
>
> 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 (like
> it shoud).
>
> DynLayer.prototype.EventMethod = function(e) {
> var dyndoc=this.lyrobj.dyndoc;
> if (is.ie) {
> [ ...]
> }
> else if (is.ns5) {
> e.cancelBubble = true;
> }
> [ ... ]
> };
>
>
> tested in mozilla 0.7 and NN6 on a mac.
>
> --
> // Michael Buerge
>
>
> _______________________________________________
> Dynapi-Dev mailing list
> [EMAIL PROTECTED]
> http://lists.sourceforge.net/lists/listinfo/dynapi-dev
>
_______________________________________________
Dynapi-Dev mailing list
[EMAIL PROTECTED]
http://lists.sourceforge.net/lists/listinfo/dynapi-dev