[mapguide-users] getSessionID() Error in Mapguide Fusion (Version 2.5.0.7749)

jenjeny jjen.2007 at gmail.com
Wed Jul 17 00:00:12 PDT 2013


I changed my code to find the mapguide layer as follows:

<script language="javascript">
function MyOnLoad ()
{
Fusion.initialize(); 
var mapWidget =Fusion.getWidgetById('Map'); 
for (var i = 0; i < mapWidget.aMaps.length; i++) 
{ 
    if (mapWidget.aMaps[i].arch == "MapGuide") 
    { 
         SESSION1 = mapWidget.aMaps[i].getSessionID(); 
         MAPNAME1 = mapWidget.aMaps[i].getMapName(); 
         break; 
    } 
}
document.form1.SESSION.value=SESSION1;
document.form1.MAPNAME.value=MAPNAME1;
}

But still, it shows the same error.Are there any other mistakes in this code
snippet?

Thanks
Jeny



--
View this message in context: http://osgeo-org.1560.x6.nabble.com/getSessionID-Error-in-Mapguide-Fusion-Version-2-5-0-7749-tp5066922p5066945.html
Sent from the MapGuide Users mailing list archive at Nabble.com.


More information about the mapguide-users mailing list