![]() |
||||
|
||||
[rosa-users] TB_SELECTED_BUTTON - remembering the stateSteve McCrone mccrone@pc.jaring.mySun, 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 to remember which was = the last=20 button pushed after I perform a mouse move/click and the page = refreshes. I=20 tried declaring a variable - </FONT></DIV> <DIV><FONT face=3DArial size=3D2></FONT> </DIV> <DIV><FONT face=3DArial size=3D2><input type=3D"hidden" = name=3D"lastButtonSelected"=20 value=3D""></FONT></DIV> <DIV><FONT face=3DArial size=3D2></FONT> </DIV> <DIV><FONT face=3DArial size=3D2>and then having a java script function = -=20 </FONT></DIV> <DIV><FONT face=3DArial size=3D2></FONT> </DIV> <DIV><FONT face=3DArial size=3D2><SCRIPT = LANGUAGE=3D"JavaScript"></FONT></DIV> <DIV><FONT face=3DArial size=3D2>function zoom(){<BR> var=20 inputtype<BR> var aForm =3D=20 document.forms[0]<BR> //lastButtonSelected.value =3D "zoomin"; = --> this=20 always causes an error! don't know how to assign the value to=20 zoomin<BR> aForm.submit()</FONT></DIV> <DIV><FONT face=3DArial size=3D2>}</FONT></DIV> <DIV><FONT face=3DArial size=3D2></SCRIPT><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> </DIV> <DIV><FONT face=3DArial size=3D2>Also I have - </FONT></DIV> <DIV><FONT face=3DArial size=3D2></FONT> </DIV> <DIV><FONT face=3DArial size=3D2> <param = name=3D"TB_SELECTED_BUTTON"=20 value=3D[lastButtonSelected]><BR> </FONT></DIV> <DIV><FONT face=3DArial size=3D2>and </FONT></DIV> <DIV><FONT face=3DArial size=3D2></FONT> </DIV> <DIV><FONT face=3DArial size=3D2> <param = name=3D"TB_BUT_zoomin_JSACTION"=20 value=3D"zoom()"><BR></FONT></DIV> <DIV><FONT face=3DArial size=3D2>Thanks if you can help</FONT></DIV> <DIV><FONT face=3DArial size=3D2></FONT> </DIV> <DIV><FONT face=3DArial size=3D2>Steve</DIV></FONT> <DIV><FONT face=3DArial size=3D2></FONT> </DIV></BODY></HTML> ------=_NextPart_000_002C_01C2B44D.F806EC80--
This archive was generated by Pipermail. |
MapTools.org -- Hosted by DM Solutions Group |