[mapguide-users] pop up window in Ajax viewer
padmini godavarthi
godavarthi.padmini at gmail.com
Tue Feb 17 04:21:24 EST 2009
Hi,
Thanks for ur reply.
1) But In which file i have to write this code?
Can u plz tell me
Thanks and Regards,
Padmini.
Maciej Skorczewski wrote:
>
> hi!
>
>
> try to use this javascript code:
>
> FAQ
>
> 1. whit this code you can get xml of selected parcels,point etc +
> map_name + session numer....this data help you to call MG API and get
> all information about selected object. enjoy.
>
>
>
>
> ----code----
>
>
> function show_file()
> {
> params = new Array("xml",parent.ViewerFrame.mapFrame.GetSelectionXML()
> ,"SESSION",parent.ViewerFrame.mapFrame.GetSessionId(),
> "MAPNAME",encodeURIComponent(parent.ViewerFrame.mapFrame.GetMapName()));
>
> parent.ViewerFrame.formFrame.Submit("../my_map_folder/popup.php",
> params, "scriptFrame");
> originalOnSelectionChanged();
>
> }
>
>
>
>
> function watchInitialized ()
> {
> try {
> if(ViewerFrame.mapFrame.mapInit)
> {
> clearInterval(initTimer);
> originalOnSelectionChanged = ViewerFrame.OnSelectionChanged;
> ViewerFrame.OnSelectionChanged = show_file;
> }
> }
> catch(Exception) {}
> }
>
>
> ------ end code -----
>
>
> macieksk
> _______________________________________________
> mapguide-users mailing list
> mapguide-users at lists.osgeo.org
> http://lists.osgeo.org/mailman/listinfo/mapguide-users
>
>
--
View this message in context: http://n2.nabble.com/pop-up-window-in-Ajax-viewer-tp2321693p2339847.html
Sent from the MapGuide Users mailing list archive at Nabble.com.
More information about the mapguide-users
mailing list