[mapguide-users] Autodesk Help - OnSelectionChanged

Butler, Juan P jpbutler at co.pinellas.fl.us
Thu May 11 09:59:15 EDT 2006


Hey Kori:

 

Where did you see the documentation for the "OnSelectionChanged" event?
I'm looking for the event handlers in MGOS that are similar to the ones
I used with MG 6.x.   Thanks.

 

- Juan

 

________________________________

From: Kori Maleski [mailto:km at pat.ca] 
Sent: Wednesday, May 10, 2006 6:00 PM
To: users at mapguide.osgeo.org
Subject: [mapguide-users] Autodesk Help - OnSelectionChanged
Importance: High

 

Hi All,

 

Outstanding issue with some changes:

 

I need to call a function from the OnSelectionChanged event in the
mainframe.templ of the mapviewer/mapagent.

I have a javascript function in the mainframe.templ file itself.

 

In MGO RC 1:

 

I called my function from the OnSelectionChanged event - and it worked
smooth.

 

In MGO 1.0:

 

The code changed for both the AJAX and DWF viewer.

i.e. ajaxmappane.templ and dwfmappane.templ respectively.

 

The function call from the OnSelectionChanged no longer worked.

 

I have been fiddling trying to get it working again and have had success
with the AJAX viewer but not the DWF Viewer.

 

 

For the AJAX viewer:

 

In the ajaxmappane.templ file;

In the ProcessFeatureInfo() function - I call my function.

 

Works like a charm.  Everytime I select, the function is executed.

 

For the DWF Viewer:

 

It now has that emaprelayer.html with an OnSelectionChanged event.

 

I try calling my function there:

      parent.parent.myfunction();

- doesn't work.

 

I try calling it from the OnSelectionChanged event in mainframe.templ.

       myfunction();

- doesn't work.

 

Doesn't work means stopping IIS, MapGuide Server - editing and saving -
then restarting.

 

Can someone from Autodesk point me in the right direction?  

 

This is critical to mirroring 6.5 functionality in our clients
applications.

 

Cheers,

 

 

 

 

 

 

Kori Maleski  BSc. 
Senior Technical Consultant

 

Pacific Alliance Technologies
Suite 400 - 534 17 Ave. SW Calgary, AB CANADA T2S 0B1
TEL 403.770.1917 FAX 877.691.9149 TOL 877.691.9171 www.pat.ca
<http://www.pat.ca/> 

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.osgeo.org/pipermail/mapguide-users/attachments/20060511/1aeee7fc/attachment.html


More information about the Mapguide-users mailing list