Jordi -
MUCHAS gracias! That's great - there was no way I would have spotted
that one. It fixed the problem just fine, and obviously shouldn't have
any regression impact on anything else. Thanks very much for the speedy
and helpful reply.
- Ed
Ed McNierney
Chief Mapmaker
TopoZone.com
[EMAIL PROTECTED]
(978) 251-4242
-----Original Message-----
From: Jordi Ministral [mailto:[EMAIL PROTECTED]]
Sent: Thursday, January 24, 2002 12:10 PM
To: [EMAIL PROTECTED]
Subject: Re: [Dynapi-Help] Puzzling IE6 non-event behavior
My guess:
dynlayer.js line 162
if (is.ie55 && this.bgImage==null && this.html==null)...
replace to be
if ((is.ie55 ||is.ie6) && this.bgImage==null && this.html==null)...
If it works tell me and I'll update CVS with the change
Ed McNierney wrote:
> Hi - I use DynAPI for some simple mouse event handling on the TopoZone
> site, and the mouse events just aren't happening on IE6 (DynAPI
2.5.7).
> They work everywhere else, and I just can't figure out what's going
> wrong. I'm creating a simple overlay layer to capture mouseover
events
> so I can display a scrolling coordinate display in the status bar.
The
> mouseover events just seem to not fire in IE6, and neither does the
> onclick event that lets users recenter the map.
>
> I've walked through the code and just can't see what's going wrong.
Any
> advice would be greatly appreciated - thanks! You can see the page by
> going to the TopoZone home page at http://www.topozone.com and
clicking
> on the picture of the sample map there. Any map will do - they're all
> on http://www.topozone.com/map.asp - and the DynAPI code on that page
is
> below.
>
> - Ed
>
> Ed McNierney
> Chief Mapmaker
> TopoZone.com
> [EMAIL PROTECTED]
> (978) 251-4242
>
>
> DynAPI.setLibraryPath('/script/dynapi/src/lib/')
> DynAPI.include('dynapi.api.*')
> DynAPI.include('dynapi.event.*')
> DynAPI.include('dynapi.ext.inline.js')
>
> DynAPI.onLoad = function()
> {
> DynLayer.prototype.setCursor = function (cType) { if (is.ie ||
> is.ns5) this.css.cursor = cType; }
> overlayDynLayer = new DynLayer (null, mapFrameLeft + framewidth,
> mapFrameTop + coordHeight + frameheight, mapwpix, maphpix, 0,
'visible',
> URLsymlink == '' ? 10 : 8);
>
> overlayListener = new EventListener (overlayDynLayer);
> overlayListener.onmouseover = function (e) {doMapOver (is.ie ?
> e.getPageX () - overlayX : e.getX (), is.ie ? e.getPageY () - overlayY
:
> e.getY ());}
> overlayListener.onmousemove = overlayListener.onmouseover;
> overlayListener.onmouseout = function (e) {doMapClear ();}
> overlayListener.onclick = function (e) {doMapClick (is.ie ?
> e.getPageX () - overlayX : e.getX (), is.ie ? e.getPageY () - overlayY
:
> e.getY ());}
>
> overlayDynLayer.addEventListener (overlayListener);
> DynAPI.document.addChild (overlayDynLayer);
>
> overlayX = overlayDynLayer.getX ();
> overlayY = overlayDynLayer.getY ();
> overlayDynLayer.setCursor ('crosshair');
> toggleSymbol (symState);
> if (is.ie)
>
DynAPI.document.all['symbolLayer'].setY(DynAPI.document.all['symbolLayer
> '].getY() - 3);
> if (is.ns) { window.onresize = reloadNow; document.width =
> mapwpix + (framewidth * 2) + 130; }
> isLoaded = true;
> }
>
>
> Ed McNierney
> Chief Mapmaker
> TopoZone.com
> [EMAIL PROTECTED]
> (978) 251-4242
>
>
> _______________________________________________
> Dynapi-Help mailing list
> [EMAIL PROTECTED]
> https://lists.sourceforge.net/lists/listinfo/dynapi-help
>
>
_______________________________________________
Dynapi-Help mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/dynapi-help
_______________________________________________
Dynapi-Help mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/dynapi-help