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

Reply via email to