Hey I thought I was the last one that ever found this bug. Blame the
alert() call. When you place an alert inside an mouse event listener, on
certain situations it will break the browser's control status ( bacause
of it being another window and being a modal window ) and breaking all
evnts. Netscape will think that all mouse events are the same that
caused the alert to pop up.
Amazin, isn't it :)
Doug Melvin wrote:
> Win98NS 4.75 somehow the mouseup in the below code is being fired
> three times in NS 4.75, without fail.Also, clicking ANY where in the
> document causes the mouseup to be fired..wierd, no? (the code is
> inside a widget..) this.Listener=new EventListener(this);
> this.Listener.onprecreate=function(evnt){
> evnt.getTarget().setVisible(false);
> }
> this.Listener.oncreate=function(evnt){
> var theNode=evnt.getTarget();
> theNode.nodeOffset=theNode.parentNode.nodeOffset;
> theNode.nodeHeight=theNode.parentNode.nodeHeight;
> theNode.nodeWidth=theNode.parentNode.nodeWidth;
> theNode.imagePath=theNode.parentNode.imagePath;
> theNode.icon.src=theNode.imagePath + 'nodeicon.gif';
> theNode.posNodes=theNode.parentNode.posNodes;
> theNode.makeLabel();
> };
> this.Listener.onmouseup=function(evnt){
> evnt.setBubble(false);
> var theNode=evnt.getTarget();
> if (evnt.x>theNode.h&&theNode.actionCode){
> eval(theNode.actionCode);
> }else{
> alert(evnt.getSource());
> theNode.expandNode();
> }
> };
> this.addEventListener(this.Listener);
> ---
> Outgoing mail is certified Virus Free by AVG Free Edition
> Download at: http://www.grisoft.com/html/us_index.cfm
> Checked by AVG anti-virus system (http://www.grisoft.com).
> Version: 6.0.237 / Virus Database: 115 - Release Date: 3/7/01
_______________________________________________
Dynapi-Help mailing list
[EMAIL PROTECTED]
http://lists.sourceforge.net/lists/listinfo/dynapi-help
Re: [Dynapi-Help] bloddy stragne occurance.
Jordi - IlMaestro - Ministral Thu, 08 Mar 2001 00:56:18 -0800
- [Dynapi-Help] bloddy stragne occurance. Doug Melvin
- Re: [Dynapi-Help] bloddy stragne occura... Jordi - IlMaestro - Ministral
- Re: [Dynapi-Help] bloddy stragne oc... Doug Melvin
