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> AppletCoords = document.myform.<span style="background-color: rgb(255, 255, 51);">
APPLET_COORDS</span>.value;<br> alert(AppletCoords);<br> document.form_name.submit(); // if you want :)<br><br><br><br>Init Parameters, in PHP<br><br> printf("\n");<br> printf("<APPLET NAME=\"RosaApplet\" ARCHIVE=\"./rosa/rosa.jar\" CODE=\"Rosa2000\" WIDTH=\"%d\" HEIGHT=\"%d\" MAYSCRIPT>\n", $MapObj->width, $MapObj->height);
<br> printf("<PARAM NAME=\"TB_POSITION\" VALUE=\"up\">\n");<br> printf("<PARAM NAME=\"TB_ALIGN\" VALUE=\"right\">");<br> printf("<PARAM NAME=\"IMG_URL\" VALUE=\"%s\">",$url);
<br> printf("<PARAM NAME=\"INP_FORM_NAME\" VALUE=\"form_name\">");<br> <span style="font-weight: bold;"> printf("<PARAM NAME=\"TB_BUTTONS\" VALUE=\"zoomext|zoomin|zoomout|recentre|pquery|
<span style="background-color: rgb(255, 255, 51);">new_point</span>\">\n");</span><br> printf("<PARAM NAME=\"INP_TYPE_NAME\" VALUE=\"<span style="background-color: rgb(255, 255, 255);">
APPLET_COORDS_TYPE</span>\">\n");<br> printf("<PARAM NAME=\"INP_COORD_NAME\" VALUE=\"<span style="background-color: rgb(255, 255, 51);">APPLET_COORDS</span>\">\n");<br>
printf("<PARAM NAME=\"TB_SELECTED_BUTTON\" VALUE=\"%s\">",$AppletButtonName); // preserves the selected button after refresh)<br><br><br>and the declaration of the "new_point" button and parameters are:
<br><br>printf("<PARAM NAME=\"TB_BUT_<span style="font-weight: bold;"><span style="background-color: rgb(255, 255, 51);">new_point</span></span>_IMG\" VALUE=\"./rosa/new_point_1.gif\">\n");
<br> printf("<PARAM NAME=\"TB_BUT_<span style="font-weight: bold;"><span style="background-color: rgb(255, 255, 51);">new_point</span></span>_IMG_PR\" VALUE=\"./rosa/new_point_2.gif\">\n");
<br> printf("<PARAM NAME=\"TB_BUT_<span style="font-weight: bold;"><span style="background-color: rgb(255, 255, 51);">new_point</span></span>_HINT\" VALUE=\"Make a click on the map in oder to geocode a new point\">\n");
<br> printf("<PARAM NAME=\"TB_BUT_<span style="font-weight: bold;"><span style="background-color: rgb(255, 255, 51);">new_point</span></span>_INPUT\" VALUE=\"auto_point\">\n"); // auto submit or call to JSACTION function.
<br> printf("<PARAM NAME=\"TB_BUT_<span style="font-weight: bold;"><span style="background-color: rgb(255, 255, 51);">new_point</span></span>_NAME\" VALUE=\"CMD\">\n");<br> printf("<PARAM NAME=\"TB_BUT_
<span style="font-weight: bold;"><span style="background-color: rgb(255, 255, 51);">new_point</span></span>_VALUE\" VALUE=\"NEW_POINT\">\n");<br> printf("<PARAM NAME=\"TB_BUT_<span style="font-weight: bold;">
<span style="background-color: rgb(255, 255, 51);">new_point</span></span>_JSACTION\" VALUE=\"ProcessPoint()\">\n");<br> printf("<PARAM NAME=\"TB_BUT_<span style="font-weight: bold;">
<span style="background-color: rgb(255, 255, 51);">new_point</span></span>_CURSOR_TYPE\" VALUE=\"CROSSHAIR\">\n");<br><br>Regards, 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 & 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 <<a href="mailto:assefa@dmsolutions.ca">
assefa@dmsolutions.ca</a>>:</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> 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>> Greetings,<br>><br>> I'm trying to add a button to the ROSA toolbar that will pass back map
<br>> coordinates that I can use to add a point to a shapefile (for now, I just want<br>> to echo back the Input_Coord value via the JavaScript; I already have the code<br>> written to do the add to the shapefile). But the button doesn't appear in the
<br>> toolbar. But the button doesn't appear in the toolbar. The images are in the<br>> correct folder; everything is set up correctly as far as I can tell. WHat's<br>> wrong?<br>><br>> Here's the temporary script:
<br>><br>> function ProcessPoint()<br>> {<br>> szCoord = document.forms[0].INPUT_COORD.value;<br>> window.alert(szCoord);<br>> } // end of ProcessPoint<br>><br>> Here's the applet:<br>><br>> <applet name="RosaApplet" archive="./rosa/rosa.jar" code="Rosa2000" width="400"
<br>> height="343" MAYSCRIPT><br>> <param name="TB_POSITION" value="right"><br>> <param name="TB_ALIGN" value="top"><br>> <param name="IMG_URL"
<br>> value="<a href="http://localhost/maplab_projects/gmf_apps/IraqTest/wrapper/drawmap.php">http://localhost/maplab_projects/gmf_apps/IraqTest/wrapper/drawmap.php</a>?<br>> gszMapName=/ms4w/apps///maplab-<br>
> 2.2.1/IraqTestMap//IraqTestMap.map&gszCurrentState=BBOX=38.5,28.498125,49,37.501<br>> 875|SRS=|MAPSIZE=400,343|LAYERS=0,1,2,3,4&map_session_mode=0&run_query=0&gszPHPM<br>> apScriptModName=php_mapscript_46.dll&gszQueryCoords=">
<br>> <param name="INP_FORM_NAME" value="main"><br>> <param name="TB_BUTTONS"<br>> value="ZOOM_IN|ZOOM_OUT|ZOOM_FULL|RECENTRE|QUERY|DIG_PT"><br>> <param name="INP_TYPE_NAME" value="INPUT_TYPE">
<br>> <param name="INP_COORD_NAME" value="INPUT_COORD"><br>> <param name="TB_SELECTED_BUTTON" value="ZOOM_IN"><br>> <param name="TB_BUT_DIGPT_IMG" value="./images/tool_digpt_1.gif">
<br>> <param name="TB_BUT_DIGPT_IMG_PR" value="./images/tool_digpt_2.gif"><br>> <param name="TB_BUT_DIGPT_HINT" value="Digitize Pre-inventory Points"><br>> <param name="TB_BUT_DIGPT_INPUT" value="auto_point">
<br>> <param name="TB_BUT_DIGPT_NAME" value="CMD"><br>> <param name="TB_BUT_DIGPT_VALUE" value="DIGPT"><br>> <param name="TB_BUT_DIGPT_JSACTION" value="ProcessPoint()">
<br>> <param name="TB_BUT_DIGPT_CURSOR_TYPE" value="CROSSHAIR"><br>> </applet><br>><br>> Thanks,<br>><br>> -Steve<br>><br>> Stephen H. Savage, Affiliate Professor and Director
<br>> Geo-Archaeological Information Applications (GAIA) Lab<br>> School of Human Evolution and Social Change<br>> Box 872402<br>> Arizona State University<br>> Tempe, AZ 85287-2402<br>><br>> <a href="mailto:shsavage@asu.edu">
shsavage@asu.edu</a><br>><br>> <a href="http://gaialab.asu.edu/home">http://gaialab.asu.edu/home</a> - The GAIA Lab's home page<br>> <a href="http://archaeology.asu.edu/Jordan">http://archaeology.asu.edu/Jordan
</a> - Personal home page<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>><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: (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>