[mapguide-users] Measure tool...problem whit start in TaskPaneFrame.

Maciej Skorczewski maciej.skorczewski at procad.pl
Fri Apr 20 06:16:40 EDT 2007


Hi all!

In my aplication (MGOS 1.1+PHP) i use TaskFrame to show info about 
clicked object on map....i call it by:

parent.ViewerFrame.GetTaskFrame().location.href ="some_page.php";


BUT after load info about clicked object in TaskPaneFrame  when i try 
load Measure tool in it i can't start Measure.

in Studio i  add Invoke Script to button in toolbar

------------------
function miarka()
{
GetTaskFrame().location.href = 
'http://127.0.0.1:8008/mapguide/mapviewerphp/measureui.php?PARTIAL=0&TOTAL=0&WIDTH=300&LOCALE=pl&SESSION='+parent.ViewerFrame.mapFrame.GetSessionId()+'&MAPNAME=mapname&TGT=1&POPUP=0&CMDINDEX=24';
}
miarka();
------------------

i load Measure tool corect but can't start measure. when i press Clear 
or Stop in Measure tool i get error
---
GetParent().ForwardMouseDown is not a function
[Break on this error] GetParent().ForwardMouseDown(document, e);
---



So guestion is how sould i call or load this Measure Tool in TaskPaneFrame.



-- 
Maciej Skórczewski


More information about the mapguide-users mailing list