[mapguide-users] RE: Invoke Script

andrea tiveron (e-metodi) andrea.tiveron at e-metodi.it
Thu Aug 25 13:27:03 EDT 2011


try this
var xframe = GetMapFrame();
function DigitizeLine() {
xframe.DigitizeLine(OnLineDigitized);
}
function OnLineDigitized(line)
{
var url;
url = 'page.aspx?varline=' + line;
//if you want use scriptFrame (not visible)
xframe.parent.frames[3].location.href=url;
//or taskPaneFrame (visible)
xframe.parent.frames[5].frames[1].location.href=url;
}
DigitizeLine()

-----Original Message-----
From: mapguide-users-bounces at lists.osgeo.org
[mailto:mapguide-users-bounces at lists.osgeo.org] On Behalf Of anand
Sent: lunedì 22 agosto 2011 06:38
To: mapguide-users at lists.osgeo.org
Subject: [mapguide-users] RE: Invoke Script

thanks for ur reply,

It's working in application to draw a line. Now i need to save this line in
database, but how to raise the DigitizeLine() event in my application when
i've drawn a line on map?

--
View this message in context:
http://osgeo-org.1803224.n2.nabble.com/Invoke-Script-tp6701807p6710232.html
Sent from the MapGuide Users mailing list archive at Nabble.com.
_______________________________________________
mapguide-users mailing list
mapguide-users at lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapguide-users

--
This message was scanned by ESVA and is believed to be clean.



More information about the mapguide-users mailing list