On Fri, 15 May 2009 09:27:11 -0700, briancomeau <[email protected]> wrote:
> Ok, so I found Invoke URL under advanced commands as part of a Web Layout. > This looks like it can configure a button to do something. How can I have > this execute as soon as the user clicks (selects) an object on any layer. > > For example, in 6.5, I could have a map and as soon as the user selects > Texas, 'TX' is passed to Flash. If the user were to zoom-in and click on > 'Dallas', then 'Dallas' is passed to Flash. This will require adding a JavaScript function to the page and hooking it into the selection-changed event. I'd start with "Hooking to events in the AJAX viewer" <https://trac.osgeo.org/mapguide/wiki/CodeSamples/JavaScript/AJAXViewerEventHooking> and the "MapGuide Viewer API Reference" <http://mapguide.osgeo.org/files/mapguide/docs/2.0/viewerapi.html>. > Oh, I looked at passData, but even after changing the layer to > 'VotingDistricts' (my layer instead of Rooms) it still doesn't work. There are several parameters that will need to be configured in the invoke-url dialog in order to make this work, and of course you must have a page to forward the data to. I'll admit that the change from MapGuide 6.5 to MapGuide Enterprise is a difficult one; there is much to learn about the new architecture -- it is a dramatically different set of technologies than the old one. Much more of the processing happens server-side now. -- James Card California CAD Solutions, Inc. 209-578-5580 - Voice 209-521-6493 - FAX _______________________________________________ mapguide-users mailing list [email protected] http://lists.osgeo.org/mailman/listinfo/mapguide-users
