<table cellspacing="0" cellpadding="0" border="0" ><tr><td valign="top" style="font: inherit;"><DIV>Hello, </DIV>
<DIV> </DIV>
<DIV>I have a small problem, please help !!!</DIV>
<DIV> </DIV>
<DIV>I am using the java development environment and need to execute some java code when the map has finished loading. Using the AJAX viewer I use a JSP page that has on the onload property of the body this function :</DIV>
<DIV> </DIV>
<DIV>function onPageLoad() {<BR> if (parent.mapFrame.mapInit) {<BR> clearTimeout(t);<BR> window.open('ajaxviewerMapguideJS.jsp?SESSION=<%=sessionId%>&WEBLAYOUT=<%=webLayout%>&GUID=<%=GUID%>', 'scriptFrame', '');<BR> } else {<BR> t = setTimeout("onPageLoad()", 500);<BR> }</DIV>
<DIV> </DIV>
<DIV>The problem is when I am using the DWF viewer the mapFrame.mapInit variable is always false, because, I understand, the viewer don't use this variable. Do anybody know how could I verify if the map has loaded using the DWF viewer ?</DIV>
<DIV> </DIV>
<DIV>Thanks :)</DIV></td></tr></table><br>