Autodesk Help - OnSelectionChanged
Kori Maleski
km at pat.ca
Wed May 10 18:00:02 EDT 2006
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/20060510/e2302e3f/attachment.html
More information about the Mapguide-users
mailing list