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: [email protected]
[mailto:[email protected]] On Behalf Of anand
Sent: lunedì 22 agosto 2011 06:38
To: [email protected]
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
[email protected]
http://lists.osgeo.org/mailman/listinfo/mapguide-users

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

_______________________________________________
mapguide-users mailing list
[email protected]
http://lists.osgeo.org/mailman/listinfo/mapguide-users

Reply via email to