add something like<br><br>document.location='report.cfm?x='+point.X +'&Y=' +point.Y'; <br><br>or window.open(etc)<br>
<br>to the end of the OnPointDigitized function<br><br><div class="gmail_quote">On Tue, Oct 5, 2010 at 7:10 AM, John Bendix <span dir="ltr"><<a href="mailto:John.Bendix@ci.new-ulm.mn.us">John.Bendix@ci.new-ulm.mn.us</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;">
<div link="blue" vlink="purple" lang="EN-US">
<div>
<p class="MsoNormal">Hello everyone,</p>
<p class="MsoNormal">I have figured out how to get the Digitize Point function to
work in mapguide, with the following code. By a selecting the screen with an "onclick
option" in java. </p>
<p class="MsoNormal">But I need to post the results to another php, cfm, or
whatever page to submit the results to a mapguide layer or spatial table. Does
anyone know how or have an example of how this is done.</p>
<p class="MsoNormal"> </p>
<p class="MsoNormal"><!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01
Transitional//EN"></p>
<p class="MsoNormal"> </p>
<p class="MsoNormal"><html></p>
<p class="MsoNormal"><head></p>
<p class="MsoNormal"> <title>Untitled</title></p>
<p class="MsoNormal"></head></p>
<p class="MsoNormal"> </p>
<p class="MsoNormal"><body></p>
<p class="MsoNormal"><script language="JavaScript"></p>
<p class="MsoNormal">
function getMapFrame() {</p>
<p class="MsoNormal">
return top.Main.mapFrame;</p>
<p class="MsoNormal">
}</p>
<p class="MsoNormal">
</p>
<p class="MsoNormal">
function StartSelectPoint() {</p>
<p class="MsoNormal">
getMapFrame().DigitizePoint(OnPointDigitized);</p>
<p class="MsoNormal">
getMapFrame().document.body.style.cursor = 'crosshair';</p>
<p class="MsoNormal">
</p>
<p class="MsoNormal">
}</p>
<p class="MsoNormal">
</p>
<p class="MsoNormal">
function OnPointDigitized(point) {</p>
<p class="MsoNormal">
var x = point.X;</p>
<p class="MsoNormal">
var y = point.Y;</p>
<p class="MsoNormal"> </p>
<p class="MsoNormal">
</p>
<p class="MsoNormal">
document.getElementById('x').value=x;</p>
<p class="MsoNormal">
document.getElementById('y').value=y;</p>
<p class="MsoNormal"> getMapFrame().document.body.style.cursor
= 'default';</p>
<p class="MsoNormal">
ShowResults("X: " + point.X + ", Y: " + point.Y);</p>
<p class="MsoNormal"> </p>
<p class="MsoNormal">
}</p>
<p class="MsoNormal">
</p>
<p class="MsoNormal"> </p>
<p class="MsoNormal"> </p>
<p class="MsoNormal"> </p>
<p class="MsoNormal">
function ClearAddForm() {</p>
<p class="MsoNormal">
document.getElementById('x').value="";</p>
<p class="MsoNormal">
document.getElementById('y').value="";</p>
<p class="MsoNormal">
getMapFrame().document.body.style.cursor = 'default';</p>
<p class="MsoNormal">
}</p>
<p class="MsoNormal"> </p>
<p class="MsoNormal">
function RefreshMap() {</p>
<p class="MsoNormal">
getMapFrame().Refresh();</p>
<p class="MsoNormal">
</p>
<p class="MsoNormal">
}</p>
<p class="MsoNormal"> </p>
<p class="MsoNormal"> </p>
<p class="MsoNormal"> </p>
<p class="MsoNormal"> </p>
<p class="MsoNormal"> </p>
<p class="MsoNormal"> </p>
<p class="MsoNormal"> </p>
<p class="MsoNormal"></script></p>
<p class="MsoNormal"> </p>
<p class="MsoNormal"><table width="100%"></p>
<p class="MsoNormal">
<tr></p>
<p class="MsoNormal">
<td align="right"></p>
<p class="MsoNormal"> <input
class="basicbutton" type="button" name="Add"</p>
<p class="MsoNormal">value=" Select Point on Map "
onclick="javascript: StartSelectPoint();"</p>
<p class="MsoNormal">style="width=180;" /></p>
<p class="MsoNormal">
<br /></p>
<p class="MsoNormal">
</td></p>
<p class="MsoNormal">
</tr></p>
<p class="MsoNormal"> </p>
<p class="MsoNormal">
<tr></p>
<p class="MsoNormal">
<td class="menu2"></p>
<p class="MsoNormal">
X Coordinate<br /></p>
<p class="MsoNormal">
<input type="text" id="x" name="x"
value=""</p>
<p class="MsoNormal">style="width:100%;" /></p>
<p class="MsoNormal">
</td></p>
<p class="MsoNormal">
</tr></p>
<p class="MsoNormal"> </p>
<p class="MsoNormal">
<tr></p>
<p class="MsoNormal">
<td class="menu2"></p>
<p class="MsoNormal">
Y Coordinate<br /></p>
<p class="MsoNormal">
<input type="text" id="y" name="y"
value=""</p>
<p class="MsoNormal">style="width:100%;" /></p>
<p class="MsoNormal">
</td></p>
<p class="MsoNormal">
</tr></p>
<p class="MsoNormal"> </p>
<p class="MsoNormal">
<tr></p>
<p class="MsoNormal">
<td align="right"></p>
<p class="MsoNormal"> <input
class="basicbutton" type="button"</p>
<p class="MsoNormal">id="clearbutton" value="Clear"
style="width=106;" onclick="javascript:</p>
<p class="MsoNormal">ClearAddForm();" /></p>
<p class="MsoNormal">
</td></p>
<p class="MsoNormal">
</tr></p>
<p class="MsoNormal"></table></p>
<p class="MsoNormal"> </p>
<p class="MsoNormal"> </p>
<p class="MsoNormal"><hr /></p>
<p class="MsoNormal"> </p>
<p class="MsoNormal"><input class="basicbutton" style="display:
block; float: right;"</p>
<p class="MsoNormal">type="button" name="refreshmapbutton"
value=" Refresh Entire Map "</p>
<p class="MsoNormal">onclick="javascript: RefreshMap();"
style="width=180;" /></p>
<p class="MsoNormal"> </p>
<p class="MsoNormal"> </p>
<p class="MsoNormal"> </p>
<p class="MsoNormal"></body></p>
<p class="MsoNormal"></html></p>
<p class="MsoNormal"> </p>
<p class="MsoNormal"> </p>
<p class="MsoNormal"> </p>
</div>
</div>
<br>_______________________________________________<br>
mapguide-users mailing list<br>
<a href="mailto:mapguide-users@lists.osgeo.org">mapguide-users@lists.osgeo.org</a><br>
<a href="http://lists.osgeo.org/mailman/listinfo/mapguide-users" target="_blank">http://lists.osgeo.org/mailman/listinfo/mapguide-users</a><br>
<br></blockquote></div><br><br clear="all"><br>-- <br>Zac Spitzer <br>Solution Architect / Director<br>Ennoble Consultancy Australia<br><a href="http://www.ennoble.com.au">http://www.ennoble.com.au</a><br><a href="http://zacster.blogspot.com">http://zacster.blogspot.com</a><br>
+61 405 847 168<br><br><br><br>