[mapguide-users] AJAX versus DWF problem

Dave Wilson dave.wilson at autodesk.com
Thu Oct 16 11:26:04 EDT 2008


I don't know the exact command off the top of my head, but the DWF Viewer has its own similar API with which you could do a similar check.

Dave

From: mapguide-users-bounces at lists.osgeo.org [mailto:mapguide-users-bounces at lists.osgeo.org] On Behalf Of Sebastian NICIU
Sent: Thursday, October 16, 2008 5:53 AM
To: mapguide-users at lists.osgeo.org
Subject: [mapguide-users] AJAX versus DWF problem

Hello,

I have a small problem, please help !!!

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 :

function onPageLoad() {
            if (parent.mapFrame.mapInit) {
                clearTimeout(t);
                window.open('ajaxviewerMapguideJS.jsp?SESSION=<%=sessionId%>&WEBLAYOUT=<%=webLayout%>&GUID=<%=GUID%>', 'scriptFrame', '');
            } else {
                t = setTimeout("onPageLoad()", 500);
            }

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 ?

Thanks :)


-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.osgeo.org/pipermail/mapguide-users/attachments/20081016/bd9ff0a0/attachment.html


More information about the mapguide-users mailing list