You can subscribe to this list here.
2000 |
Jan
|
Feb
|
Mar
|
Apr
|
May
|
Jun
|
Jul
|
Aug
|
Sep
|
Oct
(75) |
Nov
(252) |
Dec
(418) |
---|---|---|---|---|---|---|---|---|---|---|---|---|
2001 |
Jan
(659) |
Feb
(1039) |
Mar
(870) |
Apr
(235) |
May
(329) |
Jun
(251) |
Jul
(123) |
Aug
(119) |
Sep
(67) |
Oct
(194) |
Nov
(535) |
Dec
(133) |
2002 |
Jan
(122) |
Feb
(24) |
Mar
(29) |
Apr
(28) |
May
(16) |
Jun
(20) |
Jul
(11) |
Aug
(12) |
Sep
(13) |
Oct
(14) |
Nov
(23) |
Dec
(19) |
2003 |
Jan
(28) |
Feb
(170) |
Mar
(288) |
Apr
(211) |
May
(126) |
Jun
(166) |
Jul
(131) |
Aug
(102) |
Sep
(211) |
Oct
(301) |
Nov
(22) |
Dec
(6) |
2004 |
Jan
(14) |
Feb
(16) |
Mar
(7) |
Apr
|
May
(8) |
Jun
(25) |
Jul
(21) |
Aug
(2) |
Sep
(7) |
Oct
|
Nov
(2) |
Dec
(1) |
2005 |
Jan
(4) |
Feb
(2) |
Mar
(14) |
Apr
(24) |
May
(3) |
Jun
(7) |
Jul
(30) |
Aug
(5) |
Sep
(1) |
Oct
(3) |
Nov
|
Dec
(1) |
2006 |
Jan
|
Feb
|
Mar
|
Apr
(1) |
May
|
Jun
|
Jul
|
Aug
|
Sep
(4) |
Oct
|
Nov
|
Dec
|
From: Glen D. <gle...@gt...> - 2001-01-23 16:29:27
|
Here's a handle I use. ----- Original Message -----=20 From: Michael Pemberton=20 To: dyn...@li...=20 Sent: Tuesday, January 23, 2001 8:06 AM Subject: [Dynapi-Dev] Dragging and Cancelling The cancelDrag method of the drag event doesn't seem to do anything. = Does anyone have a working example of it in action?=20 I am trying to limit dragging to only a section of a layer ( so that = sragging can only happen if they click in a specific section of the = layer). I tried placing a e.cancelDrag() call in the dragstart = eventlistener but that didn't help. Is there a simple way of setting up = a handle type setup for dragging a layer?=20 --=20 Michael Pemberton=20 mp...@ph...=20 ICQ: 12107010=20 _______________________________________________ Dynapi-Dev mailing = list Dyn...@li... = http://lists.sourceforge.net/lists/listinfo/dynapi-dev |
From: Robert R. <rra...@ya...> - 2001-01-23 16:13:53
|
The problem with getContentW/H is affecting almost all of the other widgets in NS 6, especially the ones that use the label since it relies on those methods. So, we should fix these methods before making changes to the widgets. -- // Robert Rainwater On 1/23/2001, 4:53:11 AM EST, Cameron wrote about "[Dynapi-Dev] Width/Height and LoadPanel in NS6": > I have done something similar. However I don't think that offsetWidth and > offsetHeight do quite do the right thing, what we need is a Netscape 6 > equivalent to IE's scrollWidth and scrollHeight. > For those who are interested, Mozilla has offsetHeight and offsetWidth (see > http://www.mozilla.org/status/2000-08-04.html), but not scrollHeight and > scrollWidth. See http://msdn.microsoft.com/workshop/author/om/measuring.asp > for an explanation of the difference. The problem I have with offsetHeight > in LoadPanel is because I always set the height of the LoadPanel, the height > I have set is returned by offsetHeight, not the true height of the content. > However when I load a new page in LoadPanel if I write the HTML into a new > child DynLayer that has no dimensions set on it, then offsetHeight returns > the correct contentHeight of the new Layer. > There isn't a lot of documentation on these measurements either, because > they aren't part of the DOM as far as I can tell. > Cheers > Cameron. >> -----Original Message----- >> From: dyn...@li... >> [mailto:dyn...@li...]On Behalf Of >> ni...@pr... >> Sent: 22 January 2001 23:37 >> To: dyn...@li... >> Subject: Re: [Dynapi-Dev] Width/Height >> >> >> this is what I use : >> DynLayer.prototype.getContentWidth=function() { >> if (!this.created) return 0 >> else { >> if (is.ns4) return this.doc.width >> else if (is.ns5) return parseInt(this.elm.offsetWidth) >> else return parseInt(this.elm.scrollWidth) >> } >> } >> DynLayer.prototype.getContentHeight=function() { >> if (!this.created) return 0 >> else { >> if (is.ns4) return this.doc.height >> else if (is.ns5) return parseInt(this.elm.offsetHeight) >> else return parseInt(this.elm.scrollHeight) >> } >> } >> >> > and none seem to work. This is the source of several problems >> with the DynAPI in NS 6. >> >> this is true if you try to getContentWidth and Height >> before the layer it's actually shown in the page >> coz the browser itself takes time to get the info aboutthe layer >> ,(sorry but my english sucks) >> >> I've tested in many ways and like i said before in the >> widget-list the only way is to put a setTimeout for ns6 >> but that cause other problem when u have a lot of nested layers >> or complex widget >> >> once the layer it's on the page u can >> alert(myLayer.getContentWidth()) and it will work >> >> ciao >> Y >> > >> > -- >> > // Robert Rainwater >> > ---------------------- >> > DynAPI Snapshots: http://dynapi.sourceforge.net/snapshot/ >> > DynAPI Homepage: http://dynapi.sourceforge.net/ >> > >> > >> > >> > _______________________________________________ >> > Dynapi-Dev mailing list >> > Dyn...@li... >> > http://lists.sourceforge.net/lists/listinfo/dynapi-dev >> >> >> >> _______________________________________________ >> Dynapi-Dev mailing list >> Dyn...@li... >> http://lists.sourceforge.net/lists/listinfo/dynapi-dev > _______________________________________________ > Dynapi-Dev mailing list > Dyn...@li... > http://lists.sourceforge.net/lists/listinfo/dynapi-dev ---------------------- DynAPI Snapshots: http://dynapi.sourceforge.net/snapshot/ DynAPI Homepage: http://dynapi.sourceforge.net/ |
From: Michael P. <mp...@ph...> - 2001-01-23 15:09:10
|
<!doctype html public "-//w3c//dtd html 4.0 transitional//en"> <html> <body bgcolor="#FFFFFF"> the x and y values are relative to the layer that I want to drag. However, I want to only allow the layer to be dragged if they click in a particular section (such as a title bar). All the co-ords are correct, I just need to find a way of stopping the drag from starting if the mouse is outside my specified region. <p>francesco AGATI wrote: <blockquote TYPE=CITE> <font face="Arial"><font size=-1>I think that the coordinate x adn y of the layer are calculated no good because are wrong the coordinate of hte parent layer</font></font> <blockquote style="PADDING-RIGHT: 0px; PADDING-LEFT: 5px; MARGIN-LEFT: 5px; BORDER-LEFT: #000000 2px solid; MARGIN-RIGHT: 0px"> <div style="FONT: 10pt arial">----- Original Message -----</div> <div style="BACKGROUND: #e4e4e4; FONT: 10pt arial; font-color: black"><b>From:</b> <a href="mailto:mp...@ph..." title="mp...@ph...">Michael Pemberton</a></div> <div style="FONT: 10pt arial"><b>To:</b> <a href="mailto:dyn...@li..." title="dyn...@li...">dyn...@li...</a></div> <div style="FONT: 10pt arial"><b>Sent:</b> Tuesday, January 23, 2001 3:33 PM</div> <div style="FONT: 10pt arial"><b>Subject:</b> Re: [Dynapi-Dev] Dragging and Cancelling</div> i used a statusbar message to test if the coords were correct. It only seems to be that the event is not being cancelled correctly. I'll keep looking into it. I may be able to stop the actual mouse click that starts the dragging for reaching the drag listener. <p>francesco AGATI wrote: <blockquote TYPE="CITE"><style></style> <font face="Arial"><font size=-1>I have see that the DragEvent.setDragBoundary not function correctly when i limitthe area of dragging and when the layer draggable is into another layer</font></font> <font face="Arial"><font size=-1>When i try to drag this layer the coord x and y of the layer are crazy...</font></font> <font face="Arial"><font size=-1>francesco</font></font> <blockquote dir=ltr style="PADDING-RIGHT: 0px; PADDING-LEFT: 5px; MARGIN-LEFT: 5px; BORDER-LEFT: #000000 2px solid; MARGIN-RIGHT: 0px"> <div style="FONT: 10pt arial">----- Original Message -----</div> <div style="BACKGROUND: #e4e4e4; FONT: 10pt arial; font-color: black"><b>From:</b> <a href="mailto:mp...@ph..." title="mp...@ph...">Michael Pemberton</a></div> <div style="FONT: 10pt arial"><b>To:</b> <a href="mailto:dyn...@li..." title="dyn...@li...">dyn...@li...</a></div> <div style="FONT: 10pt arial"><b>Sent:</b> Tuesday, January 23, 2001 2:06 PM</div> <div style="FONT: 10pt arial"><b>Subject:</b> [Dynapi-Dev] Dragging and Cancelling</div> The cancelDrag method of the drag event doesn't seem to do anything. Does anyone have a working example of it in action? <p>I am trying to limit dragging to only a section of a layer ( so that sragging can only happen if they click in a specific section of the layer). I tried placing a <tt>e.cancelDrag()</tt> call in the dragstart eventlistener but that didn't help. Is there a simple way of setting up a handle type setup for dragging a layer? <p>-- <br>Michael Pemberton <br>mp...@ph... <br>ICQ: 12107010 <br> _______________________________________________ Dynapi-Dev mailing list Dyn...@li... <a href="http://lists.sourceforge.net/lists/listinfo/dynapi-dev">http://lists.sourceforge.net/lists/listinfo/dynapi-dev</a></blockquote> </blockquote> _______________________________________________ Dynapi-Dev mailing list Dyn...@li... <A HREF="http://lists.sourceforge.net/lists/listinfo/dynapi-dev">http://lists.sourceforge.net/lists/listinfo/dynapi-dev</A></blockquote> </blockquote> <p>-- <br>Michael Pemberton <br>mp...@ph... <br>ICQ: 12107010 <br> </body> </html> |
From: francesco A. <fa...@we...> - 2001-01-23 14:59:48
|
I think that the coordinate x adn y of the layer are calculated no good = because are wrong the coordinate of hte parent layer ----- Original Message -----=20 From: Michael Pemberton=20 To: dyn...@li...=20 Sent: Tuesday, January 23, 2001 3:33 PM Subject: Re: [Dynapi-Dev] Dragging and Cancelling i used a statusbar message to test if the coords were correct. It = only seems to be that the event is not being cancelled correctly. I'll = keep looking into it. I may be able to stop the actual mouse click that = starts the dragging for reaching the drag listener.=20 francesco AGATI wrote:=20 I have see that the DragEvent.setDragBoundary not function correctly = when i limitthe area of dragging and when the layer draggable is into = another layer When i try to drag this layer the coord x and y of the = layer are crazy... francesco=20 ----- Original Message ----- From: Michael Pemberton To: dyn...@li... Sent: Tuesday, January 23, 2001 2:06 PM Subject: [Dynapi-Dev] Dragging and Cancelling The cancelDrag method of the drag event doesn't seem to do = anything. Does anyone have a working example of it in action?=20 I am trying to limit dragging to only a section of a layer ( so = that sragging can only happen if they click in a specific section of the = layer). I tried placing a e.cancelDrag() call in the dragstart = eventlistener but that didn't help. Is there a simple way of setting up = a handle type setup for dragging a layer?=20 --=20 Michael Pemberton=20 mp...@ph...=20 ICQ: 12107010=20 _______________________________________________ Dynapi-Dev = mailing list Dyn...@li... = http://lists.sourceforge.net/lists/listinfo/dynapi-dev _______________________________________________ Dynapi-Dev mailing = list Dyn...@li... = http://lists.sourceforge.net/lists/listinfo/dynapi-dev |
From: Michael P. <mp...@ph...> - 2001-01-23 14:29:07
|
<!doctype html public "-//w3c//dtd html 4.0 transitional//en"> <html> <body bgcolor="#FFFFFF"> i used a statusbar message to test if the coords were correct. It only seems to be that the event is not being cancelled correctly. I'll keep looking into it. I may be able to stop the actual mouse click that starts the dragging for reaching the drag listener. <p>francesco AGATI wrote: <blockquote TYPE=CITE><style></style> <font face="Arial"><font size=-1>I have see that the DragEvent.setDragBoundary not function correctly when i limit</font></font><font face="Arial"><font size=-1>the area of dragging and when the layer draggable is into another layer</font></font> <font face="Arial"><font size=-1>When i try to drag this layer the coord x and y of the layer are crazy...</font></font> <font face="Arial"><font size=-1>francesco</font></font> <blockquote dir=ltr style="PADDING-RIGHT: 0px; PADDING-LEFT: 5px; MARGIN-LEFT: 5px; BORDER-LEFT: #000000 2px solid; MARGIN-RIGHT: 0px"> <div style="FONT: 10pt arial">----- Original Message -----</div> <div style="BACKGROUND: #e4e4e4; FONT: 10pt arial; font-color: black"><b>From:</b> <a href="mailto:mp...@ph..." title="mp...@ph...">Michael Pemberton</a></div> <div style="FONT: 10pt arial"><b>To:</b> <a href="mailto:dyn...@li..." title="dyn...@li...">dyn...@li...</a></div> <div style="FONT: 10pt arial"><b>Sent:</b> Tuesday, January 23, 2001 2:06 PM</div> <div style="FONT: 10pt arial"><b>Subject:</b> [Dynapi-Dev] Dragging and Cancelling</div> The cancelDrag method of the drag event doesn't seem to do anything. Does anyone have a working example of it in action? <p>I am trying to limit dragging to only a section of a layer ( so that sragging can only happen if they click in a specific section of the layer). I tried placing a <tt>e.cancelDrag()</tt> call in the dragstart eventlistener but that didn't help. Is there a simple way of setting up a handle type setup for dragging a layer? <p>-- <br>Michael Pemberton <br>mp...@ph... <br>ICQ: 12107010 <br> _______________________________________________ Dynapi-Dev mailing list Dyn...@li... <A HREF="http://lists.sourceforge.net/lists/listinfo/dynapi-dev">http://lists.sourceforge.net/lists/listinfo/dynapi-dev</A></blockquote> </blockquote> </body> </html> |
From: francesco A. <fa...@we...> - 2001-01-23 14:13:19
|
I have see that the DragEvent.setDragBoundary not function correctly = when i limit the area of dragging and when the layer draggable is into another layer When i try to drag this layer the coord x and y of the layer are = crazy... francesco ----- Original Message -----=20 From: Michael Pemberton=20 To: dyn...@li...=20 Sent: Tuesday, January 23, 2001 2:06 PM Subject: [Dynapi-Dev] Dragging and Cancelling The cancelDrag method of the drag event doesn't seem to do anything. = Does anyone have a working example of it in action?=20 I am trying to limit dragging to only a section of a layer ( so that = sragging can only happen if they click in a specific section of the = layer). I tried placing a e.cancelDrag() call in the dragstart = eventlistener but that didn't help. Is there a simple way of setting up = a handle type setup for dragging a layer?=20 --=20 Michael Pemberton=20 mp...@ph...=20 ICQ: 12107010=20 _______________________________________________ Dynapi-Dev mailing = list Dyn...@li... = http://lists.sourceforge.net/lists/listinfo/dynapi-dev |
From: Cameron H. <ca...@bi...> - 2001-01-23 13:15:36
|
To all those who are interested. I've updated my NS6 loadpanel again. Now rather than using an IFRAME to get the size of content, I know use a div created inside the LoadPanel. This works, except Netscape doesn't re-render the bg color of the LoadPanel layer in the Loadpanel example. It's quite weird, I figure it's a Netscape bug, but there is probably a way around it. This still isn't perfect (but then loadpanel isn't perfect in any browser!), but it's getting better. If you are interested in LoadPanel working in NS6 please give this a try and let me know what happens. Cheers, Cameron. |
From: Michael P. <mp...@ph...> - 2001-01-23 13:10:08
|
<!doctype html public "-//w3c//dtd html 4.0 transitional//en"> <html> The cancelDrag method of the drag event doesn't seem to do anything. Does anyone have a working example of it in action? <p>I am trying to limit dragging to only a section of a layer ( so that sragging can only happen if they click in a specific section of the layer). I tried placing a <tt>e.cancelDrag()</tt> call in the dragstart eventlistener but that didn't help. Is there a simple way of setting up a handle type setup for dragging a layer? <p>-- <br>Michael Pemberton <br>mp...@ph... <br>ICQ: 12107010 <br> </html> |
From: Richard B. <ma...@ri...> - 2001-01-23 12:18:13
|
Hi, I tested it a little, and found that events do not work for inline layers in NS6 Cheers, Richard Bennett ma...@ri... www.richardinfo.com (Everything running on, and ported to the 19/12/2000 snapshot of DynAPI2) ----- Original Message ----- From: "labCoat" <la...@xe...> To: <dyn...@li...> Sent: Tuesday, January 23, 2001 9:12 AM Subject: [Dynapi-Dev] NS6 events and contentWH > Hello all! > > I recently revised the latest (CVS) version of events.js, and have events working properly in IE5, IE55, NS4, and NS6 (I don't have IE4, but I am almost positive that it will work in it). > > It would be great if anyone would like to plug this into their version of the API and take it for a test drive! (Also, I would appriciate any feedback!) > > Now, I made A LOT of modifications/optimizations, and I haven't commented everything, so please don't get angry for the lack of comments... ;-) > > Here goes... > > <!--// > > /* > DynAPI Distribution > Event Classes > Modified: 2001.01.23 > > The DynAPI Distribution is distributed under the terms of the GNU LGPL license. > */ > > /*---------------------------------------------------------------------- > -- CLASS: DynEvent > -- ARGUMENTS: type,src,target > -- METHODS: getType(), getSource(), getTarget() > ----------------------------------------------------------------------*/ > DynEvent=function(type,src,target) { > this.type=type; > this.src=src; > this.target=target; > }; > DynEvent.prototype.getType=function() { > return this.type; > }; > DynEvent.prototype.getSource=function() { > return this.src; > }; > DynEvent.prototype.getTarget=function() { > return this.target; > }; > > > /*---------------------------------------------------------------------- > -- CLASS: EventListener > -- ARGUMENTS: target > -- METHODS: handleEvent() > ----------------------------------------------------------------------*/ > EventListener=function(target) { > this.target=target; > } > EventListener.prototype.handleEvent=function(type,e) { > if ((e.button==2 || e.button==3) && (type=='mousedown' || type=='mouseup' || type=='click' || type=='dblclick')) { > if (e.button==2) type='md'+type; > if (e.button==3) type='rt'+type; > e.type=type; //ADDED:proteanman > } > if (this["on"+type]) { > if (is.ns5) { > var mse=(type.match(/mouse/) || type.match(/click/)); > if (!mse || (!isNaN(e.eventPhase) && ((e.src.isDynLayer && (e.eventPhase==1 || e.eventPhase==2)) || (e.src.isDynDocument && e.eventPhase==3)))) this["on"+type](e); > } else this["on"+type](e); > } > }; > > /*---------------------------------------------------------------------- > -- CLASS: MouseEvent > -- ARGUMENTS: none > -- METHODS: getType(), getSource(), getTarget(), setEvent(), > bubbleEvent(), getX(), getY(), getPageX(), getPageY(), > setBubble(), cancelBrowserEvent() > ----------------------------------------------------------------------*/ > MouseEvent=function() {}; > MouseEvent.prototype.getType=function() { > return this.type; > }; > MouseEvent.prototype.getSource=function() { > return this.src; > }; > MouseEvent.prototype.getTarget=function() { > return this.target; > }; > MouseEvent.prototype.setEvent=function(src,e) { > this.orig=e; > this.browserReturn=true; > this.bubble=true; > this.src=src; > this.type=e.type; > > if (is.ie) { > //Set event's mouse's x/y & pageX/pageY coords > this.pageX=e.x+document.body.scrollLeft; > this.pageY=e.y+document.body.scrollTop; > this.x=e.offsetX; > this.y=e.offsetY; > > //Set event mouse button > var b=e.button; > if (b==2) b=3; > else if (b==4) b=2; > this.button=b; > > //Set mouse event's modifiers > this.altKey=(e.altKey || e.altLeft); > this.ctrlKey=(e.ctrlKey || e.ctrlLeft); > this.shiftKey=(e.shiftKey || e.shiftLeft); > } else { > //ADDED: proteanman -- adds events eventphase property for ns5 > if (is.ns5) this.eventPhase=e.eventPhase; > > //Set event's mouse's x/y & pageX/pageY coords > this.pageX=e.pageX-window.pageXOffset; > this.pageY=e.pageY-window.pageYOffset; > this.x=e.layerX; > this.y=e.layerY; > > //Set event mouse button > this.button=e.which; > > //Set mouse event's modifiers > var m=e.modifiers; > this.altKey=(m==1 || m==3 || m==5 || m==7); > this.ctrlKey=(m==2 || m==3 || m==6 || m==7); > this.shiftKey=(m==4 || m==5 || m==6 || m==7); > } > }; > MouseEvent.prototype.bubbleEvent=function() { > if (!this.bubble || this.src.isDynDocument || this.src.parent==null) return; > this.x+=this.src.x; > this.y+=this.src.y; > this.src=this.src.parent; > this.src.invokeEvent(this.type,this); > this.bubbleEvent(); > return; > }; > MouseEvent.prototype.getX=function() { > return this.x; > }; > MouseEvent.prototype.getY=function() { > return this.y; > }; > MouseEvent.prototype.getPageX=function() { > return this.pageX; > }; > MouseEvent.prototype.getPageY=function() { > return this.pageY; > }; > MouseEvent.prototype.setBubble=function(b) { > this.bubble=b; > }; > MouseEvent.prototype.cancelBrowserEvent=function(b) { > this.browserReturn=false; > }; > > /*---------------------------------------------------------------------- > -- DynLayer Event Methods > ----------------------------------------------------------------------*/ > DynLayer.prototype.captureMouseEvents=function() { > if (this.isDynDocument && this.mouseEventsCaptured) return; > this.mouseEventsCaptured=true; > > if (!this.eventListeners) this.eventListeners=[]; > this.hasEventListeners=true; > > if (this.isDynLayer && (!this.created || !this.elm)) return; > > var o=(this.isDynDocument)?this.doc:this.elm; > > if (is.ns4) { > if (this.isDynLayer) o.captureEvents(Event.MOUSEOVER | Event.MOUSEMOVE | Event.MOUSEDOWN | Event.MOUSEUP | Event.CLICK | Event.DBLCLICK | Event.MOUSEOUT); > else if (this.isDynDocument) o.captureEvents(Event.MOUSEMOVE | Event.MOUSEDOWN | Event.MOUSEUP | Event.CLICK | Event.DBLCLICK); > } else if (is.ie) { > o.oncontextmenu=function() { > return false; > }; > } > > if (is.ns5) { > if (this.isDynLayer) { > //true (bubble phase - from src to window): eventPhase = 1 to 2 > o.addEventListener("mouseover",DynLayer.prototype.EventMethod,true); > o.addEventListener("mousemove",DynLayer.prototype.EventMethod,true); > o.addEventListener("mousedown",DynLayer.prototype.EventMethod,true); > o.addEventListener("mouseup",DynLayer.prototype.EventMethod,true); > o.addEventListener("click",DynLayer.prototype.EventMethod,true); > o.addEventListener("dblclick",DynLayer.prototype.EventMethod,true); > o.addEventListener("mouseout",DynLayer.prototype.EventMethod,true); > } else if (this.isDynDocument) { > //false (capture phase - from window to src): eventPhase = 3 > o.addEventListener("mousemove",DynDocument.prototype.EventMethod,false); > o.addEventListener("mousedown",DynDocument.prototype.EventMethod,false); > o.addEventListener("mouseup",DynDocument.prototype.EventMethod,false); > o.addEventListener("click",DynDocument.prototype.EventMethod,false); > o.addEventListener("dblclick",DynDocument.prototype.EventMethod,false); > } > } else { > if (this.isDynLayer) o.onmouseover=o.onmousemove=o.onmousedown=o.onmouseup=o.onclick=o.ondblclick =o.onmouseout=DynLayer.prototype.EventMethod; > else if (this.isDynDocument) o.onmousemove=o.onmousedown=o.onmouseup=o.onclick=o.ondblclick=DynDocument.p rototype.EventMethod; > } > }; > DynLayer.prototype.releaseMouseEvents=function() { > this.mouseEventsCaptured=false; > if (this.isDynLayer) { > var o=this.elm; > o.onmouseover=o.onmousemove=o.onmousedown=o.onmouseup=o.onclick=o.ondblclick =o.onmouseout=function(e) { > return false; > }; > } else if (this.isDynDocument) { > var o=this.doc; > o.onmousemove=o.onmousedown=o.onmouseup=o.onclick=o.ondblclick=function(e) { > return false; > }; > } > }; > DynLayer.prototype.EventMethod=function(e) { > var dyndoc=this.lyrobj.dyndoc; > if (is.ie) { > var e=dyndoc.elm.event; > e.cancelBubble=true; > if (e.type=="click" && DynAPI.wasDragging) { > DynAPI.wasDragging=false; > return true; > } > if ((e.type=="mouseout" && this.contains(e.toElement)) || (e.type=="mouseover" && this.contains(e.fromElement))) return true; > } > > var realsrc=(is.ie)?e.srcElement:(is.ns5)?e.currentTarget:e.target;//var realsrc=(is.ie)?e.srcElement:e.target; > > if (is.ie) while (!realsrc.lyrobj && realsrc.parentElement && realsrc.parentElement!=realsrc) realsrc=realsrc.parentElement;//for (; is.ie && !realsrc.lyrobj && realsrc.parentElement && realsrc.parentElement!=realsrc; realsrc=realsrc.parentElement); > else if (is.ns5) while (!realsrc.lyrobj && realsrc.parentNode && realsrc.parentNode!=realsrc) realsrc=realsrc.parentNode; > > var src=realsrc.lyrobj||dyndoc; > if (!src) return true; > var evt=dyndoc._e; > evt.setEvent(src,e); > var type=evt.type; > src.invokeEvent(type,evt); > > if (!this.isDynDocument && is.ns && (e.type=="mouseover" || e.type=="mouseout")) return false; > > evt.bubbleEvent(); > > //returns false after double-click, so that the click event doesn't happen again (it happens before) after the double-click -- works all but ns5 > if (type.match(/dblclick/)) return false; > > //checks for mousedown so that clicks will get fired in ns4 > else if (is.ns4 && evt.button!=3 && type.match(/mousedown/)) return true; > > //checks if there is a right-mousedown(ns4) || right-mouseup(ns5) and prevents the right-mouse menu from popping up > else if ((is.ns4 && evt.button==3 && type.match(/mousedown/)) || (is.ns5 && evt.button==3 && type.match(/mouseup/))) return false; > else return evt.browserReturn; > }; > DynLayer.prototype.addEventListener=function(listener) { > if (!this.hasEventListeners) this.captureMouseEvents(); > for (var i in this.eventListeners) { > if (this.eventListeners[i]==listener) return; > } > this.eventListeners[this.eventListeners.length]=listener; > }; > DynLayer.prototype.removeEventListener=function(listener) { > DynAPI.removeFromArray(this.eventListeners, listener, false); > }; > DynLayer.prototype.removeAllEventListeners=function() { > if (!this.hasEventListeners) return; > for (var i in this.eventListeners) delete this.eventListeners[i]; > this.eventListeners=[]; > this.hasEventListeners=false; > }; > DynLayer.prototype.invokeEvent=function(type,e) { > if (!this.hasEventListeners) return; > > if (is.ie && this.isDynLayer && ((type=='mouseover' && this.elm.contains(e.orig.fromElement)) || (type=='mouseout' && this.elm.contains(e.orig.toElement)))) return; > > var orig=null; > if (is.ns && e) { > orig=e.orig; > e.cancelBubble=false; > } > if (is.ns4 && is.platform=='other' && type.match(/mousedown/)) { > if (this.dbltimer!=null) { > type="dblclick"; > if (e) e.type=type; > } else this.dbltimer=setTimeout(this+'.dbltimer=null',300); > } > for (var i=0; i<this.eventListeners.length; i++) { > if (e) e.target=this.eventListeners[i].target; > else { > e=new DynEvent(type,this); > e.target=this.eventListeners[i].target; > if (is.ns) e.cancelBubble=false; > } > this.eventListeners[i].handleEvent(type,e); > } > > if (is.ns && ((this.isDynLayer && e) || (this.isDynDocument && (e || i!=0)))) { > if (e.cancelBubble) return; > if (orig && orig.target.handleEvent) { > if (this.isDynLayer && orig.target!=this.elm) orig.target.handleEvent(type,orig); > else if (this.isDynDocument && !orig.target.URL) orig.target.handleEvent(orig); > } > } > if (is.ns4 && is.platform=='other' && type=='mouseup') this.invokeEvent('click',e); > if (this.isDynLayer && this.parentComponent) { > if (e) e.src=this.parentComponent; > else e=new DynEvent(type,this); > this.parentComponent.invokeEvent(type,e); > } > }; > > /*---------------------------------------------------------------------- > -- DynDocument Event Methods > ----------------------------------------------------------------------*/ > DynDocument.prototype._e=new MouseEvent(); > DynDocument.prototype.captureMouseEvents=DynLayer.prototype.captureMouseEven ts; > DynDocument.prototype.releaseMouseEvents=DynLayer.prototype.releaseMouseEven ts; > DynDocument.prototype.EventMethod=DynLayer.prototype.EventMethod; > DynDocument.prototype.addEventListener=DynLayer.prototype.addEventListener; > DynDocument.prototype.removeEventListener=DynLayer.prototype.removeEventList ener; > DynDocument.prototype.removeAllEventListeners=DynLayer.prototype.removeAllEv entListeners; > DynDocument.prototype.invokeEvent=DynLayer.prototype.invokeEvent; > > //--> > > I have also made A LOT of modifications to dynlayer.js, which fixes some of the existing problems, including tge contentW/H (specifically in NS4 and NS6, in the createElement). But it is still undergoing evtensive testing. > > I need to set up CVS on my computer, so that I can make these updates soon. > > --proteanman > > On Mon, 22 January 2001, ni...@pr... wrote: > > > > > I tried your patch and still doubleclick on ns 6 doesn't work > > ciao > > Y > > On Mon, 22 January 2001, no...@so... wrote: > > > > > > > > Patch #103359 has been updated. > > > > > > Project: dynapi > > > Category: DynAPI-Event > > > Status: Open > > > Submitted by: camhart > > > Assigned to : nobody > > > Summary: NS6 event fixes > > > > > > Follow-Ups: > > > > > > Date: 2001-Jan-22 19:55 > > > By: nobody > > > > > > Comment: > > > Tested and working > > > Richard Bennett > > > ------------------------------------------------------- > > > > > > ------------------------------------------------------- > > > For more info, visit: > > > > > > http://sourceforge.net/patch/?func=detailpatch&patch_id=103359&group_id=5757 > > > > > > _______________________________________________ > > > Dynapi-Dev mailing list > > > Dyn...@li... > > > http://lists.sourceforge.net/lists/listinfo/dynapi-dev > > > > > > > > _______________________________________________ > > Dynapi-Dev mailing list > > Dyn...@li... > > http://lists.sourceforge.net/lists/listinfo/dynapi-dev > > _______________________________________________ > Dynapi-Dev mailing list > Dyn...@li... > http://lists.sourceforge.net/lists/listinfo/dynapi-dev > ____________________________________________________________ > Get your free domain name and domain-based e-mail from > Namezero.com. New! Namezero Plus domains now available. > Find out more at: http://www.namezero.com > |
From: Richard B. <ma...@ri...> - 2001-01-23 12:13:12
|
> the other patch is still not fixing problem for ns 6 Nicola, you are right, doubleclick doesn't work, I didn't check it thouroughly enough, my mistake. Cheers, Richard Bennett ma...@ri... www.richardinfo.com (Everything running on, and ported to the 19/12/2000 snapshot of DynAPI2) ----- Original Message ----- From: <ni...@pr...> To: <dyn...@li...> Sent: Tuesday, January 23, 2001 8:31 AM Subject: Re: [Dynapi-Dev] [Patch #103112] events.js > On Mon, 22 January 2001, no...@so... wrote: > > > > I don't think these changes are relevant to the latest version of > > events.js, which when patched with patch: > > > if u look at the patch u'll see that events get capture in a different way for ns 6 those are the main changes > > everything gets done twice > > Y > ------------------------------------------------------ > > > > Date: 2001-Jan-19 16:40 > > By: rainwater > > > > Comment: > > Has anyone tested this patch on the latest events file? > > ------------------------------------------------------- > > > > ------------------------------------------------------- > > For more info, visit: > > > > http://sourceforge.net/patch/?func=detailpatch&patch_id=103112&group_id=5757 > > > > _______________________________________________ > > Dynapi-Dev mailing list > > Dyn...@li... > > http://lists.sourceforge.net/lists/listinfo/dynapi-dev > > > > _______________________________________________ > Dynapi-Dev mailing list > Dyn...@li... > http://lists.sourceforge.net/lists/listinfo/dynapi-dev > ____________________________________________________________ > Get your free domain name and domain-based e-mail from > Namezero.com. New! Namezero Plus domains now available. > Find out more at: http://www.namezero.com > |
From: Dann <da...@to...> - 2001-01-23 11:43:30
|
Hi, I thought I'd better throw this in here, before I post it as a bug - I can't seem to get <layer obj>.setZIndex(<value>) to work on IE, it works okay on NS... can anybody corroborate this, or is it just me :) CU, Dann |
From: Dann <da...@to...> - 2001-01-23 11:43:29
|
Hi, I thought I'd better throw this in here, before I post it as a bug - I can't seem to get <layer obj>.setZIndex(<value>) to work on IE, it works okay on NS... can anybody corroborate this, or is it just me :) |
From: Cameron H. <ca...@bi...> - 2001-01-23 09:56:35
|
I have done something similar. However I don't think that offsetWidth and offsetHeight do quite do the right thing, what we need is a Netscape 6 equivalent to IE's scrollWidth and scrollHeight. For those who are interested, Mozilla has offsetHeight and offsetWidth (see http://www.mozilla.org/status/2000-08-04.html), but not scrollHeight and scrollWidth. See http://msdn.microsoft.com/workshop/author/om/measuring.asp for an explanation of the difference. The problem I have with offsetHeight in LoadPanel is because I always set the height of the LoadPanel, the height I have set is returned by offsetHeight, not the true height of the content. However when I load a new page in LoadPanel if I write the HTML into a new child DynLayer that has no dimensions set on it, then offsetHeight returns the correct contentHeight of the new Layer. There isn't a lot of documentation on these measurements either, because they aren't part of the DOM as far as I can tell. Cheers Cameron. > -----Original Message----- > From: dyn...@li... > [mailto:dyn...@li...]On Behalf Of > ni...@pr... > Sent: 22 January 2001 23:37 > To: dyn...@li... > Subject: Re: [Dynapi-Dev] Width/Height > > > this is what I use : > DynLayer.prototype.getContentWidth=function() { > if (!this.created) return 0 > else { > if (is.ns4) return this.doc.width > else if (is.ns5) return parseInt(this.elm.offsetWidth) > else return parseInt(this.elm.scrollWidth) > } > } > DynLayer.prototype.getContentHeight=function() { > if (!this.created) return 0 > else { > if (is.ns4) return this.doc.height > else if (is.ns5) return parseInt(this.elm.offsetHeight) > else return parseInt(this.elm.scrollHeight) > } > } > > > and none seem to work. This is the source of several problems > with the DynAPI in NS 6. > > this is true if you try to getContentWidth and Height > before the layer it's actually shown in the page > coz the browser itself takes time to get the info aboutthe layer > ,(sorry but my english sucks) > > I've tested in many ways and like i said before in the > widget-list the only way is to put a setTimeout for ns6 > but that cause other problem when u have a lot of nested layers > or complex widget > > once the layer it's on the page u can > alert(myLayer.getContentWidth()) and it will work > > ciao > Y > > > > -- > > // Robert Rainwater > > ---------------------- > > DynAPI Snapshots: http://dynapi.sourceforge.net/snapshot/ > > DynAPI Homepage: http://dynapi.sourceforge.net/ > > > > > > > > _______________________________________________ > > Dynapi-Dev mailing list > > Dyn...@li... > > http://lists.sourceforge.net/lists/listinfo/dynapi-dev > > > > _______________________________________________ > Dynapi-Dev mailing list > Dyn...@li... > http://lists.sourceforge.net/lists/listinfo/dynapi-dev |
From: Cameron H. <ca...@bi...> - 2001-01-23 09:39:11
|
It wasn't meant to fix double click events :-) > -----Original Message----- > From: dyn...@li... > [mailto:dyn...@li...]On Behalf Of > ni...@pr... > Sent: 23 January 2001 07:46 > To: dyn...@li... > Subject: Re: [Dynapi-Dev] [Patch #103359] NS6 event fixes > > > I tried your patch and still doubleclick on ns 6 doesn't work > ciao > Y > On Mon, 22 January 2001, no...@so... wrote: > > > > > Patch #103359 has been updated. > > > > Project: dynapi > > Category: DynAPI-Event > > Status: Open > > Submitted by: camhart > > Assigned to : nobody > > Summary: NS6 event fixes > > > > Follow-Ups: > > > > Date: 2001-Jan-22 19:55 > > By: nobody > > > > Comment: > > Tested and working > > Richard Bennett > > ------------------------------------------------------- > > > > ------------------------------------------------------- > > For more info, visit: > > > > > http://sourceforge.net/patch/?func=detailpatch&patch_id=103359&gro up_id=5757 > > _______________________________________________ > Dynapi-Dev mailing list > Dyn...@li... > http://lists.sourceforge.net/lists/listinfo/dynapi-dev _______________________________________________ Dynapi-Dev mailing list Dyn...@li... http://lists.sourceforge.net/lists/listinfo/dynapi-dev |
From: <no...@so...> - 2001-01-23 09:12:35
|
Bug #129784, was updated on 2001-Jan-23 01:12 Here is a current snapshot of the bug. Project: DynAPI 2 Category: Browser-Specific Issue Status: Open Resolution: None Bug Group: None Priority: 5 Submitted by: mweinelt Assigned to : nobody Summary: dynapi.js not loading in NS 4.04 X11, NS 4.05 NT Details: dynapi.js won't load on these browsers:. Javascript -error : >function does not always return a value. between line 80 and 100 depending on the snapshot I use. Martin For detailed info, follow this link: http://sourceforge.net/bugs/?func=detailbug&bug_id=129784&group_id=5757 |
From: labCoat <la...@xe...> - 2001-01-23 08:12:38
|
Hello all! I recently revised the latest (CVS) version of events.js, and have events working properly in IE5, IE55, NS4, and NS6 (I don't have IE4, but I am almost positive that it will work in it). It would be great if anyone would like to plug this into their version of the API and take it for a test drive! (Also, I would appriciate any feedback!) Now, I made A LOT of modifications/optimizations, and I haven't commented everything, so please don't get angry for the lack of comments... ;-) Here goes... <!--// /* DynAPI Distribution Event Classes Modified: 2001.01.23 The DynAPI Distribution is distributed under the terms of the GNU LGPL license. */ /*---------------------------------------------------------------------- -- CLASS: DynEvent -- ARGUMENTS: type,src,target -- METHODS: getType(), getSource(), getTarget() ----------------------------------------------------------------------*/ DynEvent=function(type,src,target) { this.type=type; this.src=src; this.target=target; }; DynEvent.prototype.getType=function() { return this.type; }; DynEvent.prototype.getSource=function() { return this.src; }; DynEvent.prototype.getTarget=function() { return this.target; }; /*---------------------------------------------------------------------- -- CLASS: EventListener -- ARGUMENTS: target -- METHODS: handleEvent() ----------------------------------------------------------------------*/ EventListener=function(target) { this.target=target; } EventListener.prototype.handleEvent=function(type,e) { if ((e.button==2 || e.button==3) && (type=='mousedown' || type=='mouseup' || type=='click' || type=='dblclick')) { if (e.button==2) type='md'+type; if (e.button==3) type='rt'+type; e.type=type; //ADDED:proteanman } if (this["on"+type]) { if (is.ns5) { var mse=(type.match(/mouse/) || type.match(/click/)); if (!mse || (!isNaN(e.eventPhase) && ((e.src.isDynLayer && (e.eventPhase==1 || e.eventPhase==2)) || (e.src.isDynDocument && e.eventPhase==3)))) this["on"+type](e); } else this["on"+type](e); } }; /*---------------------------------------------------------------------- -- CLASS: MouseEvent -- ARGUMENTS: none -- METHODS: getType(), getSource(), getTarget(), setEvent(), bubbleEvent(), getX(), getY(), getPageX(), getPageY(), setBubble(), cancelBrowserEvent() ----------------------------------------------------------------------*/ MouseEvent=function() {}; MouseEvent.prototype.getType=function() { return this.type; }; MouseEvent.prototype.getSource=function() { return this.src; }; MouseEvent.prototype.getTarget=function() { return this.target; }; MouseEvent.prototype.setEvent=function(src,e) { this.orig=e; this.browserReturn=true; this.bubble=true; this.src=src; this.type=e.type; if (is.ie) { //Set event's mouse's x/y & pageX/pageY coords this.pageX=e.x+document.body.scrollLeft; this.pageY=e.y+document.body.scrollTop; this.x=e.offsetX; this.y=e.offsetY; //Set event mouse button var b=e.button; if (b==2) b=3; else if (b==4) b=2; this.button=b; //Set mouse event's modifiers this.altKey=(e.altKey || e.altLeft); this.ctrlKey=(e.ctrlKey || e.ctrlLeft); this.shiftKey=(e.shiftKey || e.shiftLeft); } else { //ADDED: proteanman -- adds events eventphase property for ns5 if (is.ns5) this.eventPhase=e.eventPhase; //Set event's mouse's x/y & pageX/pageY coords this.pageX=e.pageX-window.pageXOffset; this.pageY=e.pageY-window.pageYOffset; this.x=e.layerX; this.y=e.layerY; //Set event mouse button this.button=e.which; //Set mouse event's modifiers var m=e.modifiers; this.altKey=(m==1 || m==3 || m==5 || m==7); this.ctrlKey=(m==2 || m==3 || m==6 || m==7); this.shiftKey=(m==4 || m==5 || m==6 || m==7); } }; MouseEvent.prototype.bubbleEvent=function() { if (!this.bubble || this.src.isDynDocument || this.src.parent==null) return; this.x+=this.src.x; this.y+=this.src.y; this.src=this.src.parent; this.src.invokeEvent(this.type,this); this.bubbleEvent(); return; }; MouseEvent.prototype.getX=function() { return this.x; }; MouseEvent.prototype.getY=function() { return this.y; }; MouseEvent.prototype.getPageX=function() { return this.pageX; }; MouseEvent.prototype.getPageY=function() { return this.pageY; }; MouseEvent.prototype.setBubble=function(b) { this.bubble=b; }; MouseEvent.prototype.cancelBrowserEvent=function(b) { this.browserReturn=false; }; /*---------------------------------------------------------------------- -- DynLayer Event Methods ----------------------------------------------------------------------*/ DynLayer.prototype.captureMouseEvents=function() { if (this.isDynDocument && this.mouseEventsCaptured) return; this.mouseEventsCaptured=true; if (!this.eventListeners) this.eventListeners=[]; this.hasEventListeners=true; if (this.isDynLayer && (!this.created || !this.elm)) return; var o=(this.isDynDocument)?this.doc:this.elm; if (is.ns4) { if (this.isDynLayer) o.captureEvents(Event.MOUSEOVER | Event.MOUSEMOVE | Event.MOUSEDOWN | Event.MOUSEUP | Event.CLICK | Event.DBLCLICK | Event.MOUSEOUT); else if (this.isDynDocument) o.captureEvents(Event.MOUSEMOVE | Event.MOUSEDOWN | Event.MOUSEUP | Event.CLICK | Event.DBLCLICK); } else if (is.ie) { o.oncontextmenu=function() { return false; }; } if (is.ns5) { if (this.isDynLayer) { //true (bubble phase - from src to window): eventPhase = 1 to 2 o.addEventListener("mouseover",DynLayer.prototype.EventMethod,true); o.addEventListener("mousemove",DynLayer.prototype.EventMethod,true); o.addEventListener("mousedown",DynLayer.prototype.EventMethod,true); o.addEventListener("mouseup",DynLayer.prototype.EventMethod,true); o.addEventListener("click",DynLayer.prototype.EventMethod,true); o.addEventListener("dblclick",DynLayer.prototype.EventMethod,true); o.addEventListener("mouseout",DynLayer.prototype.EventMethod,true); } else if (this.isDynDocument) { //false (capture phase - from window to src): eventPhase = 3 o.addEventListener("mousemove",DynDocument.prototype.EventMethod,false); o.addEventListener("mousedown",DynDocument.prototype.EventMethod,false); o.addEventListener("mouseup",DynDocument.prototype.EventMethod,false); o.addEventListener("click",DynDocument.prototype.EventMethod,false); o.addEventListener("dblclick",DynDocument.prototype.EventMethod,false); } } else { if (this.isDynLayer) o.onmouseover=o.onmousemove=o.onmousedown=o.onmouseup=o.onclick=o.ondblclick=o.onmouseout=DynLayer.prototype.EventMethod; else if (this.isDynDocument) o.onmousemove=o.onmousedown=o.onmouseup=o.onclick=o.ondblclick=DynDocument.prototype.EventMethod; } }; DynLayer.prototype.releaseMouseEvents=function() { this.mouseEventsCaptured=false; if (this.isDynLayer) { var o=this.elm; o.onmouseover=o.onmousemove=o.onmousedown=o.onmouseup=o.onclick=o.ondblclick=o.onmouseout=function(e) { return false; }; } else if (this.isDynDocument) { var o=this.doc; o.onmousemove=o.onmousedown=o.onmouseup=o.onclick=o.ondblclick=function(e) { return false; }; } }; DynLayer.prototype.EventMethod=function(e) { var dyndoc=this.lyrobj.dyndoc; if (is.ie) { var e=dyndoc.elm.event; e.cancelBubble=true; if (e.type=="click" && DynAPI.wasDragging) { DynAPI.wasDragging=false; return true; } if ((e.type=="mouseout" && this.contains(e.toElement)) || (e.type=="mouseover" && this.contains(e.fromElement))) return true; } var realsrc=(is.ie)?e.srcElement:(is.ns5)?e.currentTarget:e.target;//var realsrc=(is.ie)?e.srcElement:e.target; if (is.ie) while (!realsrc.lyrobj && realsrc.parentElement && realsrc.parentElement!=realsrc) realsrc=realsrc.parentElement;//for (; is.ie && !realsrc.lyrobj && realsrc.parentElement && realsrc.parentElement!=realsrc; realsrc=realsrc.parentElement); else if (is.ns5) while (!realsrc.lyrobj && realsrc.parentNode && realsrc.parentNode!=realsrc) realsrc=realsrc.parentNode; var src=realsrc.lyrobj||dyndoc; if (!src) return true; var evt=dyndoc._e; evt.setEvent(src,e); var type=evt.type; src.invokeEvent(type,evt); if (!this.isDynDocument && is.ns && (e.type=="mouseover" || e.type=="mouseout")) return false; evt.bubbleEvent(); //returns false after double-click, so that the click event doesn't happen again (it happens before) after the double-click -- works all but ns5 if (type.match(/dblclick/)) return false; //checks for mousedown so that clicks will get fired in ns4 else if (is.ns4 && evt.button!=3 && type.match(/mousedown/)) return true; //checks if there is a right-mousedown(ns4) || right-mouseup(ns5) and prevents the right-mouse menu from popping up else if ((is.ns4 && evt.button==3 && type.match(/mousedown/)) || (is.ns5 && evt.button==3 && type.match(/mouseup/))) return false; else return evt.browserReturn; }; DynLayer.prototype.addEventListener=function(listener) { if (!this.hasEventListeners) this.captureMouseEvents(); for (var i in this.eventListeners) { if (this.eventListeners[i]==listener) return; } this.eventListeners[this.eventListeners.length]=listener; }; DynLayer.prototype.removeEventListener=function(listener) { DynAPI.removeFromArray(this.eventListeners, listener, false); }; DynLayer.prototype.removeAllEventListeners=function() { if (!this.hasEventListeners) return; for (var i in this.eventListeners) delete this.eventListeners[i]; this.eventListeners=[]; this.hasEventListeners=false; }; DynLayer.prototype.invokeEvent=function(type,e) { if (!this.hasEventListeners) return; if (is.ie && this.isDynLayer && ((type=='mouseover' && this.elm.contains(e.orig.fromElement)) || (type=='mouseout' && this.elm.contains(e.orig.toElement)))) return; var orig=null; if (is.ns && e) { orig=e.orig; e.cancelBubble=false; } if (is.ns4 && is.platform=='other' && type.match(/mousedown/)) { if (this.dbltimer!=null) { type="dblclick"; if (e) e.type=type; } else this.dbltimer=setTimeout(this+'.dbltimer=null',300); } for (var i=0; i<this.eventListeners.length; i++) { if (e) e.target=this.eventListeners[i].target; else { e=new DynEvent(type,this); e.target=this.eventListeners[i].target; if (is.ns) e.cancelBubble=false; } this.eventListeners[i].handleEvent(type,e); } if (is.ns && ((this.isDynLayer && e) || (this.isDynDocument && (e || i!=0)))) { if (e.cancelBubble) return; if (orig && orig.target.handleEvent) { if (this.isDynLayer && orig.target!=this.elm) orig.target.handleEvent(type,orig); else if (this.isDynDocument && !orig.target.URL) orig.target.handleEvent(orig); } } if (is.ns4 && is.platform=='other' && type=='mouseup') this.invokeEvent('click',e); if (this.isDynLayer && this.parentComponent) { if (e) e.src=this.parentComponent; else e=new DynEvent(type,this); this.parentComponent.invokeEvent(type,e); } }; /*---------------------------------------------------------------------- -- DynDocument Event Methods ----------------------------------------------------------------------*/ DynDocument.prototype._e=new MouseEvent(); DynDocument.prototype.captureMouseEvents=DynLayer.prototype.captureMouseEvents; DynDocument.prototype.releaseMouseEvents=DynLayer.prototype.releaseMouseEvents; DynDocument.prototype.EventMethod=DynLayer.prototype.EventMethod; DynDocument.prototype.addEventListener=DynLayer.prototype.addEventListener; DynDocument.prototype.removeEventListener=DynLayer.prototype.removeEventListener; DynDocument.prototype.removeAllEventListeners=DynLayer.prototype.removeAllEventListeners; DynDocument.prototype.invokeEvent=DynLayer.prototype.invokeEvent; //--> I have also made A LOT of modifications to dynlayer.js, which fixes some of the existing problems, including tge contentW/H (specifically in NS4 and NS6, in the createElement). But it is still undergoing evtensive testing. I need to set up CVS on my computer, so that I can make these updates soon. --proteanman On Mon, 22 January 2001, ni...@pr... wrote: > > I tried your patch and still doubleclick on ns 6 doesn't work > ciao > Y > On Mon, 22 January 2001, no...@so... wrote: > > > > > Patch #103359 has been updated. > > > > Project: dynapi > > Category: DynAPI-Event > > Status: Open > > Submitted by: camhart > > Assigned to : nobody > > Summary: NS6 event fixes > > > > Follow-Ups: > > > > Date: 2001-Jan-22 19:55 > > By: nobody > > > > Comment: > > Tested and working > > Richard Bennett > > ------------------------------------------------------- > > > > ------------------------------------------------------- > > For more info, visit: > > > > http://sourceforge.net/patch/?func=detailpatch&patch_id=103359&group_id=5757 > > > > _______________________________________________ > > Dynapi-Dev mailing list > > Dyn...@li... > > http://lists.sourceforge.net/lists/listinfo/dynapi-dev > > > > _______________________________________________ > Dynapi-Dev mailing list > Dyn...@li... > http://lists.sourceforge.net/lists/listinfo/dynapi-dev |
From: <ni...@pr...> - 2001-01-23 07:45:35
|
I tried your patch and still doubleclick on ns 6 doesn't work ciao Y On Mon, 22 January 2001, no...@so... wrote: > > Patch #103359 has been updated. > > Project: dynapi > Category: DynAPI-Event > Status: Open > Submitted by: camhart > Assigned to : nobody > Summary: NS6 event fixes > > Follow-Ups: > > Date: 2001-Jan-22 19:55 > By: nobody > > Comment: > Tested and working > Richard Bennett > ------------------------------------------------------- > > ------------------------------------------------------- > For more info, visit: > > http://sourceforge.net/patch/?func=detailpatch&patch_id=103359&group_id=5757 > > _______________________________________________ > Dynapi-Dev mailing list > Dyn...@li... > http://lists.sourceforge.net/lists/listinfo/dynapi-dev |
From: <ni...@pr...> - 2001-01-23 07:31:18
|
On Mon, 22 January 2001, no...@so... wrote: > I don't think these changes are relevant to the latest version of > events.js, which when patched with patch: > if u look at the patch u'll see that events get capture in a different way for ns 6 those are the main changes the other patch is still not fixing problem for ns 6 everything gets done twice Y ------------------------------------------------------ > > Date: 2001-Jan-19 16:40 > By: rainwater > > Comment: > Has anyone tested this patch on the latest events file? > ------------------------------------------------------- > > ------------------------------------------------------- > For more info, visit: > > http://sourceforge.net/patch/?func=detailpatch&patch_id=103112&group_id=5757 > > _______________________________________________ > Dynapi-Dev mailing list > Dyn...@li... > http://lists.sourceforge.net/lists/listinfo/dynapi-dev |
From: <no...@so...> - 2001-01-23 03:55:20
|
Patch #103358 has been updated. Project: dynapi Category: DynAPI-Ext Status: Open Submitted by: camhart Assigned to : nobody Summary: NS6 fixes to inline.js Follow-Ups: Date: 2001-Jan-22 19:55 By: nobody Comment: Tested and working Richard Bennett ------------------------------------------------------- ------------------------------------------------------- For more info, visit: http://sourceforge.net/patch/?func=detailpatch&patch_id=103358&group_id=5757 |
From: <no...@so...> - 2001-01-23 03:54:59
|
Patch #103359 has been updated. Project: dynapi Category: DynAPI-Event Status: Open Submitted by: camhart Assigned to : nobody Summary: NS6 event fixes Follow-Ups: Date: 2001-Jan-22 19:55 By: nobody Comment: Tested and working Richard Bennett ------------------------------------------------------- ------------------------------------------------------- For more info, visit: http://sourceforge.net/patch/?func=detailpatch&patch_id=103359&group_id=5757 |
From: <no...@so...> - 2001-01-23 03:54:02
|
Patch #103112 has been updated. Project: dynapi Category: DynAPI-Event Status: Open Submitted by: nicolajazz Assigned to : nobody Summary: events.js Follow-Ups: Date: 2001-Jan-22 19:54 By: nobody Comment: Correct me if I'm wrong... I don't think these changes are relevant to the latest version of events.js, which when patched with patch: http://sourceforge.net/patch/?func=detailpatch&patch_id=103359&group_id=5757 work perfectly ok. (and contain 50% of the code) Richard Bennett ------------------------------------------------------- Date: 2001-Jan-19 16:40 By: rainwater Comment: Has anyone tested this patch on the latest events file? ------------------------------------------------------- ------------------------------------------------------- For more info, visit: http://sourceforge.net/patch/?func=detailpatch&patch_id=103112&group_id=5757 |
From: Michael P. <mp...@ph...> - 2001-01-23 00:52:46
|
<!doctype html public "-//w3c//dtd html 4.0 transitional//en"> <html> oops. i never noticed that, sorry. I'm surprised it didn't crash any other browser. <p>Michael Bürge wrote: <blockquote TYPE=CITE>The DynAPI.include() function in today's snapshot crashes the MacOS when used in IE5. <p>After countless restarts (this wasn't really funny) i eventually figured out what it is. <br>I tracked the error to the following line: <br>if (path[path.length-1] != "/") path += "/"; <p>The problem is that in IE5 on the mac you can't access the characters of a string using <i>string[position]</i>. <br><i>var s = 'blablablabla'; alert(s[0]) </i>always gives you 'undefined', I know this is weird, in all other browsers I've tested it works. So the condition in the above line is always true and the '/' is appended to <i>path </i>even if there is one already at the end of the string. As far as I can tell it is this second slash that makes IE5 and the MacOS crash when the src of the file to load then is written to the document. <br>To make it work in IE5 on the mac I suggest replacing it with <br>if (path.substr(path.length-1) != "/") path += "/"; <p>BTW: After i fixed this i found out that the creation of DynLayers doesn't work at all (IE5), i got an error saying that 'elm' is not an object at line 147, but i'm just to tired to investigate in it, maybe i'll have a look at it tomorrow. <p>-- <br>Michael</blockquote> -- <br>Michael Pemberton <br>mp...@ph... <br>ICQ: 12107010 <br> </html> |
From: <no...@so...> - 2001-01-23 00:04:25
|
Patch #103112 has been updated. Project: dynapi Category: DynAPI-Event Status: Open Submitted by: nicolajazz Assigned to : nobody Summary: events.js Follow-Ups: Date: 2001-Jan-19 16:40 By: rainwater Comment: Has anyone tested this patch on the latest events file? ------------------------------------------------------- ------------------------------------------------------- For more info, visit: http://sourceforge.net/patch/?func=detailpatch&patch_id=103112&group_id=5757 |
From: <no...@so...> - 2001-01-23 00:02:13
|
Patch #103112 has been updated. Project: dynapi Category: DynAPI-Event Status: Open Submitted by: nicolajazz Assigned to : nobody Summary: events.js Follow-Ups: Date: 2001-Jan-19 16:40 By: rainwater Comment: Has anyone tested this patch on the latest events file? ------------------------------------------------------- ------------------------------------------------------- For more info, visit: http://sourceforge.net/patch/?func=detailpatch&patch_id=103112&group_id=5757 |
From: Michael Br. <mb...@st...> - 2001-01-22 23:49:04
|
The DynAPI.include() function in today's snapshot crashes the MacOS when used in IE5. After countless restarts (this wasn't really funny) i eventually figured out what it is. I tracked the error to the following line: if (path[path.length-1] != "/") path += "/"; The problem is that in IE5 on the mac you can't access the characters of a string using string[position]. var s = 'blablablabla'; alert(s[0]) always gives you 'undefined', I know this is weird, in all other browsers I've tested it works. So the condition in the above line is always true and the '/' is appended to path even if there is one already at the end of the string. As far as I can tell it is this second slash that makes IE5 and the MacOS crash when the src of the file to load then is written to the document. To make it work in IE5 on the mac I suggest replacing it with if (path.substr(path.length-1) != "/") path += "/"; BTW: After i fixed this i found out that the creation of DynLayers doesn't work at all (IE5), i got an error saying that 'elm' is not an object at line 147, but i'm just to tired to investigate in it, maybe i'll have a look at it tomorrow. -- Michael |