What's probably happening is that your task pane code is interacting with the map before it has been fully initialized. What you need to do, is to listen for map initialization in the map frame. This code sample shows how to do this:
http://trac.osgeo.org/mapguide/wiki/CodeSamples/JavaScript/AJAXViewerEventHooking The difference here is that your code is executing from the task pane, so you have to go parent.parent.mapFrame instead of what's in the code sample. - Jackie Synchro wrote: > > > Hi,Plz can you tell me who resolve this problem: " the task pane is loaded > before Map" (in the task pane i have some functions based on the Map) > that why I have error in task Pane. But if I refraich My task Pane after > loading Map it work fine. > > > > > _________________________________________________________________ > Un avatar à votre image ? Créez votre mini-moi ! > http://www.ilovemessenger.fr/minimize-me/ > _______________________________________________ > mapguide-users mailing list > mapguide-users@lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapguide-users > > -- View this message in context: http://n2.nabble.com/Problem-About-load-task-pane-before-Map-tp4133530p4137378.html Sent from the MapGuide Users mailing list archive at Nabble.com. _______________________________________________ mapguide-users mailing list mapguide-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapguide-users