MapTools.org

[rosa-users] JavaScript / ROSA ... Accessing data before submit

Hankley, Chip Chip.Hankley@GASAI.Com
Thu, 26 Sep 2002 10:30:21 -0500
I'm confused about the TB_BUT_?_JSACTION function works in ROSA. Here's part
of my Applet definition:

    <PARAM NAME="TB_BUT_redline_IMG"
VALUE="/MapSymbols/NavSymbols/RedLineOff.GIF">
    <PARAM NAME="TB_BUT_redline_IMG_PR"
VALUE="/MapSymbols/NavSymbols/RedLineHv.GIF">
    <PARAM NAME="TB_BUT_redline_CURSOR_TYPE" VALUE="CROSSHAIR">
    <PARAM NAME="TB_BUT_redline_HINT" VALUE="Sketch on the Map">
    <PARAM NAME="TB_BUT_redline_INPUT" VALUE="auto_poly">
    <PARAM NAME="TB_BUT_redline_JSACTION" VALUE="myJSFunction()">
#JavaScript Line
    <PARAM NAME="TB_BUT_redline_NAME" VALUE="CMD">
    <PARAM NAME="TB_BUT_redline_VALUE" VALUE="REDLINE">

If I DIDN'T include the JavaScript line, this button would allow the user to
digitize a polyline on the map, and the coordinates would be submitted with
the form, in a variable called INPUT_COORD. If, however, I include the
JavaScript line as shown, the variable doesn't seem to get set.

What I'm trying to do is set up some client side processes to occur BEFORE I
submit the form... but I need access to those coordinates. What am I doing
wrong?

TIA

Chip Hankley


This archive was generated by Pipermail.