Changes between Version 1 and Version 2 of CodeSamples/JavaScript/InvokeCommandOnStartup


Ignore:
Timestamp:
Sep 9, 2010, 9:14:34 PM (14 years ago)
Author:
jng
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • CodeSamples/JavaScript/InvokeCommandOnStartup

    v1 v2  
    55== Overview ==
    66
    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.
     7This 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.
    88
    99For example setting this initial task pane url:
     
    1212}}}
    1313
    14 Will launch the Measure command on viewer startup
     14Will launch the Measure command on viewer startup.
     15
     16As 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.
    1517
    1618autostart.html