Hi Steffen, i think that the problem may be in the button declaration and init parameters of the rosa applet:<br><br>function ProcessPoint()<br>{<br><br>&nbsp; AppletCoords = document.myform.<span style="background-color: rgb(255, 255, 51);">
APPLET_COORDS</span>.value;<br>&nbsp; alert(AppletCoords);<br>&nbsp; document.form_name.submit(); // if you want :)<br><br><br><br>Init Parameters, in PHP<br><br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; printf(&quot;\n&quot;);<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; printf(&quot;&lt;APPLET NAME=\&quot;RosaApplet\&quot; ARCHIVE=\&quot;./rosa/rosa.jar\&quot; CODE=\&quot;Rosa2000\&quot; WIDTH=\&quot;%d\&quot; HEIGHT=\&quot;%d\&quot; MAYSCRIPT&gt;\n&quot;, $MapObj-&gt;width, $MapObj-&gt;height);
<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; printf(&quot;&lt;PARAM NAME=\&quot;TB_POSITION\&quot; VALUE=\&quot;up\&quot;&gt;\n&quot;);<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; printf(&quot;&lt;PARAM NAME=\&quot;TB_ALIGN\&quot; VALUE=\&quot;right\&quot;&gt;&quot;);<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; printf(&quot;&lt;PARAM NAME=\&quot;IMG_URL\&quot; VALUE=\&quot;%s\&quot;&gt;&quot;,$url);
<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; printf(&quot;&lt;PARAM NAME=\&quot;INP_FORM_NAME\&quot; VALUE=\&quot;form_name\&quot;&gt;&quot;);<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp;<span style="font-weight: bold;"> printf(&quot;&lt;PARAM NAME=\&quot;TB_BUTTONS\&quot; VALUE=\&quot;zoomext|zoomin|zoomout|recentre|pquery|
<span style="background-color: rgb(255, 255, 51);">new_point</span>\&quot;&gt;\n&quot;);</span><br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; printf(&quot;&lt;PARAM NAME=\&quot;INP_TYPE_NAME\&quot; VALUE=\&quot;<span style="background-color: rgb(255, 255, 255);">
APPLET_COORDS_TYPE</span>\&quot;&gt;\n&quot;);<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; printf(&quot;&lt;PARAM NAME=\&quot;INP_COORD_NAME\&quot; VALUE=\&quot;<span style="background-color: rgb(255, 255, 51);">APPLET_COORDS</span>\&quot;&gt;\n&quot;);<br>
&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; printf(&quot;&lt;PARAM NAME=\&quot;TB_SELECTED_BUTTON\&quot; VALUE=\&quot;%s\&quot;&gt;&quot;,$AppletButtonName); // preserves the selected button after refresh)<br><br><br>and the declaration of the &quot;new_point&quot; button and parameters are:
<br><br>printf(&quot;&lt;PARAM NAME=\&quot;TB_BUT_<span style="font-weight: bold;"><span style="background-color: rgb(255, 255, 51);">new_point</span></span>_IMG\&quot; VALUE=\&quot;./rosa/new_point_1.gif\&quot;&gt;\n&quot;);
<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; printf(&quot;&lt;PARAM NAME=\&quot;TB_BUT_<span style="font-weight: bold;"><span style="background-color: rgb(255, 255, 51);">new_point</span></span>_IMG_PR\&quot; VALUE=\&quot;./rosa/new_point_2.gif\&quot;&gt;\n&quot;);
<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; printf(&quot;&lt;PARAM NAME=\&quot;TB_BUT_<span style="font-weight: bold;"><span style="background-color: rgb(255, 255, 51);">new_point</span></span>_HINT\&quot; VALUE=\&quot;Make a click on the map in oder to geocode a new point\&quot;&gt;\n&quot;);
<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; printf(&quot;&lt;PARAM NAME=\&quot;TB_BUT_<span style="font-weight: bold;"><span style="background-color: rgb(255, 255, 51);">new_point</span></span>_INPUT\&quot; VALUE=\&quot;auto_point\&quot;&gt;\n&quot;); // auto submit or call to&nbsp; JSACTION function. 
<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; printf(&quot;&lt;PARAM NAME=\&quot;TB_BUT_<span style="font-weight: bold;"><span style="background-color: rgb(255, 255, 51);">new_point</span></span>_NAME\&quot; VALUE=\&quot;CMD\&quot;&gt;\n&quot;);<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; printf(&quot;&lt;PARAM NAME=\&quot;TB_BUT_
<span style="font-weight: bold;"><span style="background-color: rgb(255, 255, 51);">new_point</span></span>_VALUE\&quot; VALUE=\&quot;NEW_POINT\&quot;&gt;\n&quot;);<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; printf(&quot;&lt;PARAM NAME=\&quot;TB_BUT_<span style="font-weight: bold;">
<span style="background-color: rgb(255, 255, 51);">new_point</span></span>_JSACTION\&quot; VALUE=\&quot;ProcessPoint()\&quot;&gt;\n&quot;);<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; printf(&quot;&lt;PARAM NAME=\&quot;TB_BUT_<span style="font-weight: bold;">
<span style="background-color: rgb(255, 255, 51);">new_point</span></span>_CURSOR_TYPE\&quot; VALUE=\&quot;CROSSHAIR\&quot;&gt;\n&quot;);<br><br>Regards,&nbsp; and if you need more help, please feel free to contact me to <a href="mailto:rviancos@gmail.com">
rviancos@gmail.com</a><br><br><br>-- <br>René F. Viáncos S.<br>IT &amp; Geomatics Manager<br>Unidad de Ambiente, Región Territorio y Espacio, UNARTE<br>Facultad de Ciencias<br>Universidad de Chile<br>Tel (56-2) 632 61 46<br>
Cel (56 8) 489 94 35<br><a href="mailto:rviancos@uchile.cl">rviancos@uchile.cl</a><br><a href="mailto:rviancos@gmail.com">rviancos@gmail.com</a><br><br><div><span class="gmail_quote">2006/6/6, Yewondwossen Assefa &lt;<a href="mailto:assefa@dmsolutions.ca">
assefa@dmsolutions.ca</a>&gt;:</span><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">Stephen,<br><br>&nbsp;&nbsp;One possible problem could be that the name used in the toolbar DIG_PT
<br>is diffrent from the one that is used in trhe setups DIGPT. The names<br>should be the same.<br><br>Later,<br><br>Stephen H. Savage wrote:<br>&gt; Greetings,<br>&gt;<br>&gt;&nbsp;&nbsp;&nbsp;&nbsp;I'm trying to add a button to the ROSA toolbar that will pass back map
<br>&gt; coordinates that I can use to add a point to a shapefile (for now, I just want<br>&gt; to echo back the Input_Coord value via the JavaScript; I already have the code<br>&gt; written to do the add to the shapefile).&nbsp;&nbsp;But the button doesn't appear in the
<br>&gt; toolbar.&nbsp;&nbsp;But the button doesn't appear in the toolbar.&nbsp;&nbsp;The images are in the<br>&gt; correct folder; everything is set up correctly as far as I can tell.&nbsp;&nbsp;WHat's<br>&gt; wrong?<br>&gt;<br>&gt; Here's the temporary script:
<br>&gt;<br>&gt; function ProcessPoint()<br>&gt; {<br>&gt;&nbsp;&nbsp; szCoord = document.forms[0].INPUT_COORD.value;<br>&gt;&nbsp;&nbsp; window.alert(szCoord);<br>&gt; } // end of ProcessPoint<br>&gt;<br>&gt; Here's the applet:<br>&gt;<br>&gt; &lt;applet name=&quot;RosaApplet&quot; archive=&quot;./rosa/rosa.jar&quot; code=&quot;Rosa2000&quot; width=&quot;400&quot;
<br>&gt; height=&quot;343&quot; MAYSCRIPT&gt;<br>&gt; &lt;param name=&quot;TB_POSITION&quot; value=&quot;right&quot;&gt;<br>&gt; &lt;param name=&quot;TB_ALIGN&quot; value=&quot;top&quot;&gt;<br>&gt; &lt;param name=&quot;IMG_URL&quot;
<br>&gt; value=&quot;<a href="http://localhost/maplab_projects/gmf_apps/IraqTest/wrapper/drawmap.php">http://localhost/maplab_projects/gmf_apps/IraqTest/wrapper/drawmap.php</a>?<br>&gt; gszMapName=/ms4w/apps///maplab-<br>
&gt; 2.2.1/IraqTestMap//IraqTestMap.map&amp;gszCurrentState=BBOX=38.5,28.498125,49,37.501<br>&gt; 875|SRS=|MAPSIZE=400,343|LAYERS=0,1,2,3,4&amp;map_session_mode=0&amp;run_query=0&amp;gszPHPM<br>&gt; apScriptModName=php_mapscript_46.dll&amp;gszQueryCoords=&quot;&gt;
<br>&gt; &lt;param name=&quot;INP_FORM_NAME&quot; value=&quot;main&quot;&gt;<br>&gt; &lt;param name=&quot;TB_BUTTONS&quot;<br>&gt; value=&quot;ZOOM_IN|ZOOM_OUT|ZOOM_FULL|RECENTRE|QUERY|DIG_PT&quot;&gt;<br>&gt; &lt;param name=&quot;INP_TYPE_NAME&quot; value=&quot;INPUT_TYPE&quot;&gt;
<br>&gt; &lt;param name=&quot;INP_COORD_NAME&quot; value=&quot;INPUT_COORD&quot;&gt;<br>&gt; &lt;param name=&quot;TB_SELECTED_BUTTON&quot; value=&quot;ZOOM_IN&quot;&gt;<br>&gt; &lt;param name=&quot;TB_BUT_DIGPT_IMG&quot; value=&quot;./images/tool_digpt_1.gif&quot;&gt;
<br>&gt; &lt;param name=&quot;TB_BUT_DIGPT_IMG_PR&quot; value=&quot;./images/tool_digpt_2.gif&quot;&gt;<br>&gt; &lt;param name=&quot;TB_BUT_DIGPT_HINT&quot; value=&quot;Digitize Pre-inventory Points&quot;&gt;<br>&gt; &lt;param name=&quot;TB_BUT_DIGPT_INPUT&quot; value=&quot;auto_point&quot;&gt;
<br>&gt; &lt;param name=&quot;TB_BUT_DIGPT_NAME&quot; value=&quot;CMD&quot;&gt;<br>&gt; &lt;param name=&quot;TB_BUT_DIGPT_VALUE&quot; value=&quot;DIGPT&quot;&gt;<br>&gt; &lt;param name=&quot;TB_BUT_DIGPT_JSACTION&quot; value=&quot;ProcessPoint()&quot;&gt;
<br>&gt; &lt;param name=&quot;TB_BUT_DIGPT_CURSOR_TYPE&quot; value=&quot;CROSSHAIR&quot;&gt;<br>&gt; &lt;/applet&gt;<br>&gt;<br>&gt; Thanks,<br>&gt;<br>&gt; -Steve<br>&gt;<br>&gt; Stephen H. Savage, Affiliate Professor and Director
<br>&gt; Geo-Archaeological Information Applications (GAIA) Lab<br>&gt; School of Human Evolution and Social Change<br>&gt; Box 872402<br>&gt; Arizona State University<br>&gt; Tempe, AZ&nbsp;&nbsp;85287-2402<br>&gt;<br>&gt; <a href="mailto:shsavage@asu.edu">
shsavage@asu.edu</a><br>&gt;<br>&gt; <a href="http://gaialab.asu.edu/home">http://gaialab.asu.edu/home</a>&nbsp;&nbsp;-&nbsp;&nbsp;The GAIA Lab's home page<br>&gt; <a href="http://archaeology.asu.edu/Jordan">http://archaeology.asu.edu/Jordan
</a>&nbsp;&nbsp;-&nbsp;&nbsp;Personal home page<br>&gt; _______________________________________________<br>&gt; ROSA-users mailing list<br>&gt; <a href="mailto:ROSA-users@lists.maptools.org">ROSA-users@lists.maptools.org</a><br>&gt; <a href="http://lists.maptools.org/mailman/listinfo/rosa-users">
http://lists.maptools.org/mailman/listinfo/rosa-users</a><br>&gt;<br><br><br>--<br>----------------------------------------------------------------<br>Assefa Yewondwossen<br>Software Analyst<br><br>Email: <a href="mailto:assefa@dmsolutions.ca">
assefa@dmsolutions.ca</a><br><a href="http://www.dmsolutions.ca/">http://www.dmsolutions.ca/</a><br><br>Phone: (613) 565-5056 (ext 14)<br>Fax:&nbsp;&nbsp; (613) 565-0925<br>----------------------------------------------------------------
<br><br><br>_______________________________________________<br>ROSA-users mailing list<br><a href="mailto:ROSA-users@lists.maptools.org">ROSA-users@lists.maptools.org</a><br><a href="http://lists.maptools.org/mailman/listinfo/rosa-users">
http://lists.maptools.org/mailman/listinfo/rosa-users</a><br></blockquote></div><br><br clear="all"><br>