I've put a code sample up that can do this: http://trac.osgeo.org/mapguide/wiki/CodeSamples/JavaScript/InvokeCommandOnStartup - Jackie -- View this message in context: http://osgeo-org.1803224.n2.nabble.com/initial-task-in-taskpane-tp5517001p5517078.html Sent from the MapGuide Users mailing list archive at Nabble.com.