<html><body><div style="color:#000; background-color:#fff; font-family:times new roman, new york, times, serif;font-size:10pt"><div>Hello,</div><br>I get a null value when i call Fusion.getWidgetById('Map') <br>I have opend the map in an iframe called "fusionFrame" . This is how i call the getWidgetById function: <br><br> mgApiMapWidgetId='Map';<br> var Fusion = window.top.fusionFrame.Fusion;<br> var mapWidget = Fusion.getWidgetById(mgApiMapWidgetId);<br> if (mapWidget != null && mapWidget.isMapLoaded())
{<br> alert(mapWidget.getMapName());<br> }<br><br><br> Fusion.getWidgetById(mgApiMapWidgetId) always returns a null value in IE, but in Mozilla if I add an alert("") before calling the function, the mapWidget is not null anymore and the map name is alerted<br>The code is runnig in a hidden iframe called 'scriptFr'<br>I'm using Mapguide 2.2<br><br>Does anybody know why this happens?<br><br>Thank you,<br>Iulia<br><br></div></body></html>