add something like<br><br>document.location=&#39;report.cfm?x=&#39;+point.X +&#39;&amp;Y=&#39; +point.Y&#39;;                                                                                    <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">&lt;<a href="mailto:John.Bendix@ci.new-ulm.mn.us">John.Bendix@ci.new-ulm.mn.us</a>&gt;</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 &quot;onclick
option&quot; 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">&lt;!DOCTYPE HTML PUBLIC &quot;-//W3C//DTD HTML 4.01
Transitional//EN&quot;&gt;</p>

<p class="MsoNormal"> </p>

<p class="MsoNormal">&lt;html&gt;</p>

<p class="MsoNormal">&lt;head&gt;</p>

<p class="MsoNormal">                &lt;title&gt;Untitled&lt;/title&gt;</p>

<p class="MsoNormal">&lt;/head&gt;</p>

<p class="MsoNormal"> </p>

<p class="MsoNormal">&lt;body&gt;</p>

<p class="MsoNormal">&lt;script language=&quot;JavaScript&quot;&gt;</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 = &#39;crosshair&#39;;</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(&#39;x&#39;).value=x;</p>

<p class="MsoNormal">                               
document.getElementById(&#39;y&#39;).value=y;</p>

<p class="MsoNormal">                                getMapFrame().document.body.style.cursor
= &#39;default&#39;;</p>

<p class="MsoNormal">                                                                                                                   
ShowResults(&quot;X: &quot; + point.X + &quot;, Y: &quot; + 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(&#39;x&#39;).value=&quot;&quot;;</p>

<p class="MsoNormal">                               
document.getElementById(&#39;y&#39;).value=&quot;&quot;;</p>

<p class="MsoNormal">                               
getMapFrame().document.body.style.cursor = &#39;default&#39;;</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">&lt;/script&gt;</p>

<p class="MsoNormal"> </p>

<p class="MsoNormal">&lt;table width=&quot;100%&quot;&gt;</p>

<p class="MsoNormal">               
&lt;tr&gt;</p>

<p class="MsoNormal">                               
&lt;td align=&quot;right&quot;&gt;</p>

<p class="MsoNormal">                                                &lt;input
class=&quot;basicbutton&quot; type=&quot;button&quot; name=&quot;Add&quot;</p>

<p class="MsoNormal">value=&quot; Select Point on Map &quot;
onclick=&quot;javascript: StartSelectPoint();&quot;</p>

<p class="MsoNormal">style=&quot;width=180;&quot; /&gt;</p>

<p class="MsoNormal">                                               
&lt;br /&gt;</p>

<p class="MsoNormal">                               
&lt;/td&gt;</p>

<p class="MsoNormal">               
&lt;/tr&gt;</p>

<p class="MsoNormal"> </p>

<p class="MsoNormal">               
&lt;tr&gt;</p>

<p class="MsoNormal">                               
&lt;td class=&quot;menu2&quot;&gt;</p>

<p class="MsoNormal">                                               
X Coordinate&lt;br /&gt;</p>

<p class="MsoNormal">                                               
&lt;input type=&quot;text&quot; id=&quot;x&quot; name=&quot;x&quot;
value=&quot;&quot;</p>

<p class="MsoNormal">style=&quot;width:100%;&quot; /&gt;</p>

<p class="MsoNormal">                               
&lt;/td&gt;</p>

<p class="MsoNormal">               
&lt;/tr&gt;</p>

<p class="MsoNormal"> </p>

<p class="MsoNormal">               
&lt;tr&gt;</p>

<p class="MsoNormal">                               
&lt;td class=&quot;menu2&quot;&gt;</p>

<p class="MsoNormal">                                               
Y Coordinate&lt;br /&gt;</p>

<p class="MsoNormal">                                               
&lt;input type=&quot;text&quot; id=&quot;y&quot; name=&quot;y&quot;
value=&quot;&quot;</p>

<p class="MsoNormal">style=&quot;width:100%;&quot; /&gt;</p>

<p class="MsoNormal">                               
&lt;/td&gt;</p>

<p class="MsoNormal">               
&lt;/tr&gt;</p>

<p class="MsoNormal"> </p>

<p class="MsoNormal">               
&lt;tr&gt;</p>

<p class="MsoNormal">                               
&lt;td align=&quot;right&quot;&gt;</p>

<p class="MsoNormal">                                                &lt;input
class=&quot;basicbutton&quot; type=&quot;button&quot;</p>

<p class="MsoNormal">id=&quot;clearbutton&quot; value=&quot;Clear&quot;
style=&quot;width=106;&quot; onclick=&quot;javascript:</p>

<p class="MsoNormal">ClearAddForm();&quot; /&gt;</p>

<p class="MsoNormal">                               
&lt;/td&gt;</p>

<p class="MsoNormal">               
&lt;/tr&gt;</p>

<p class="MsoNormal">&lt;/table&gt;</p>

<p class="MsoNormal"> </p>

<p class="MsoNormal"> </p>

<p class="MsoNormal">&lt;hr /&gt;</p>

<p class="MsoNormal"> </p>

<p class="MsoNormal">&lt;input class=&quot;basicbutton&quot; style=&quot;display:
block; float: right;&quot;</p>

<p class="MsoNormal">type=&quot;button&quot; name=&quot;refreshmapbutton&quot;
value=&quot; Refresh Entire Map &quot;</p>

<p class="MsoNormal">onclick=&quot;javascript: RefreshMap();&quot;
style=&quot;width=180;&quot; /&gt;</p>

<p class="MsoNormal"> </p>

<p class="MsoNormal"> </p>

<p class="MsoNormal"> </p>

<p class="MsoNormal">&lt;/body&gt;</p>

<p class="MsoNormal">&lt;/html&gt;</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>