MapTools.org

[rosa-users] TB_SELECTED_BUTTON - remembering the state

Steve McCrone mccrone@pc.jaring.my
Sun, 5 Jan 2003 00:04:08 +0800
This is a multi-part message in MIME format.

------=_NextPart_000_002C_01C2B44D.F806EC80
Content-Type: text/plain;
	charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable

I finally got my simple mapserver app. working with the rosa. Now I'm =
trying to figure out how  to remember which was the last button pushed =
after I perform a mouse move/click and the page refreshes. I tried =
declaring a variable - =20

<input type=3D"hidden" name=3D"lastButtonSelected" value=3D"">

and then having a java script function -=20

<SCRIPT LANGUAGE=3D"JavaScript">
function zoom(){
 var inputtype
 var aForm =3D document.forms[0]
 //lastButtonSelected.value =3D "zoomin"; --> this always causes an =
error! don't know how to assign the value to zoomin
 aForm.submit()
}
</SCRIPT>

I'm not sure if this is corect or not.

Also I have -=20

 <param name=3D"TB_SELECTED_BUTTON" value=3D[lastButtonSelected]>
=20
and=20

 <param name=3D"TB_BUT_zoomin_JSACTION" value=3D"zoom()">

Thanks if you can help

Steve


------=_NextPart_000_002C_01C2B44D.F806EC80
Content-Type: text/html;
	charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META http-equiv=3DContent-Type content=3D"text/html; =
charset=3Diso-8859-1">
<META content=3D"MSHTML 5.50.4134.600" name=3DGENERATOR>
<STYLE></STYLE>
</HEAD>
<BODY bgColor=3D#ffffff>
<DIV><FONT face=3DArial size=3D2>I finally got my simple mapserver app. =
working with=20
the rosa. Now I'm trying to figure out how&nbsp; to remember which was =
the last=20
button pushed after I perform a mouse move/click and the page =
refreshes.&nbsp;I=20
tried&nbsp;declaring a variable - &nbsp;</FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2>&lt;input type=3D"hidden" =
name=3D"lastButtonSelected"=20
value=3D""&gt;</FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2>and then having a java script function =
-=20
</FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2>&lt;SCRIPT =
LANGUAGE=3D"JavaScript"&gt;</FONT></DIV>
<DIV><FONT face=3DArial size=3D2>function zoom(){<BR>&nbsp;var=20
inputtype<BR>&nbsp;var aForm =3D=20
document.forms[0]<BR>&nbsp;//lastButtonSelected.value =3D "zoomin"; =
--&gt; this=20
always causes an error! don't know how to assign the value to=20
zoomin<BR>&nbsp;aForm.submit()</FONT></DIV>
<DIV><FONT face=3DArial size=3D2>}</FONT></DIV>
<DIV><FONT face=3DArial size=3D2>&lt;/SCRIPT&gt;<BR></FONT></DIV>
<DIV><FONT face=3DArial size=3D2>I'm not sure if this is corect or =
not.</FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2>Also I have - </FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2>&nbsp;&lt;param =
name=3D"TB_SELECTED_BUTTON"=20
value=3D[lastButtonSelected]&gt;<BR>&nbsp;</FONT></DIV>
<DIV><FONT face=3DArial size=3D2>and </FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2>&nbsp;&lt;param =
name=3D"TB_BUT_zoomin_JSACTION"=20
value=3D"zoom()"&gt;<BR></FONT></DIV>
<DIV><FONT face=3DArial size=3D2>Thanks if you can help</FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2>Steve</DIV></FONT>
<DIV><FONT face=3DArial size=3D2></FONT>&nbsp;</DIV></BODY></HTML>

------=_NextPart_000_002C_01C2B44D.F806EC80--




This archive was generated by Pipermail.