Hello All, I'm having a lot of trouble with Fusion and javascript. I am somewhat of a newb to fusion, so please bare with me.
I have a aspx page in the task pane which I have been adding some buttons with some javascript too, in order to test things out. At this point, it appears that any call to a function defined in MapGuide.js (../fusion/mapguide/mapguide.js) won't break my code. For example "parent.document.getElementById('Map').widget.aMaps[0].drawMap();" would refresh the map. However, any calls to MapGuideViewerApi.js will not work. I have tried including it into my page, and I have also tried calling it in different fashion. For example: var Fusion = window.top.Fusion; var map = Fusion.getWidgetById('Map'); map.Refresh(); Why won't the MapGuideViewerApi.js functions work? If they can't be used, how do i zoom and digitize points? Also, I mentioned that the mapguide.js functions work, yet setSelection does not. I get the following error Fusion Error: WARNING: Exception occurred in AJAX callback. [object Error] Location: {1} ({2}) xx) At this point, the functions I need to work in order for my code to function are: setSelection digitizePoint digitizeRectangle None of which work J Any help or a push in the right direction would be greatly appreciated. Setup: MGOS 2.0.1 Fusion 1.0.6 Autodesk MapGuide Studio 2009 Using IIS, VB, and VS 2005 Pro Ph: (425) 486-1252 Fx: (425) 486-6108 www.meadgilman.com <http://www.meadgilman.com/>
<<image002.jpg>>
_______________________________________________ mapguide-users mailing list mapguide-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapguide-users