Thanks Mike, I figured it out. The registerForEvent does not like the
brackets such as alert("hi there) or the function with parameters...
registerForEvent(Fusion.Event.MAP_EXTENTS_CHANGED,
alert(Fusion.getWidgetById('Map').getScale()));
What I had to do was:
registerForEvent(Fusion.Event.MAP_EXTENTS_CHANGED, showScale);
and then create a function:
function showScale()
{
alert(Fusion.getWidgetById('Map').getScale());
}
and that works fine...
thanks
gordon
--
View this message in context:
http://n2.nabble.com/Fusion-Event-MAP-EXTENTS-CHANGED-throws-error-tp4365674p4375888.html
Sent from the MapGuide Users mailing list archive at Nabble.com.
_______________________________________________
mapguide-users mailing list
[email protected]
http://lists.osgeo.org/mailman/listinfo/mapguide-users