Changes between Version 1 and Version 2 of CodeSamples/JavaScript/InvokeCommandOnStartup
- Timestamp:
- 09/09/10 21:14:34 (15 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
CodeSamples/JavaScript/InvokeCommandOnStartup
v1 v2 5 5 == Overview == 6 6 7 This html page can automatically invoke a name viewer command on viewer startup based on the value of a {{{Cmd}}} query string property. This uses the {{{InitialTask}}} property of the Web Layout.7 This html page can automatically invoke a named viewer command on viewer startup based on the value of a {{{Cmd}}} query string property. This uses the {{{InitialTask}}} property of the Web Layout. 8 8 9 9 For example setting this initial task pane url: … … 12 12 }}} 13 13 14 Will launch the Measure command on viewer startup 14 Will launch the Measure command on viewer startup. 15 16 As you can see from the code below, we need to employ initialization checks [http://trac.osgeo.org/mapguide/wiki/CodeSamples/JavaScript/AJAXViewerEventHooking just like in the event hooking example], to make sure we can start using the Viewer API when the frames have been fully initialized. 15 17 16 18 autostart.html