[Mapserver-users] mapplet/Jbox problem - again
Ioannis Kanellopoulos
ioannis.kanellopoulos at jrc.it
Tue May 27 09:34:08 PDT 2003
This is a multi-part message in MIME format.
------=_NextPart_000_0011_01C3247E.8F96A680
Content-Type: multipart/alternative;
boundary="----=_NextPart_001_0012_01C3247E.8F96A680"
------=_NextPart_001_0012_01C3247E.8F96A680
Content-Type: text/plain;
charset="Windows-1252"
Content-Transfer-Encoding: quoted-printable
Dear All,
A couple of weeks ago I posted a message about some problems I =
encountered with mapplet and jBox. Unfortunately I have not been able to =
solve the problem yet, even though Richard Greenwood provided a couple =
of suggestions.=20
Below I include the jBox version of the html template hoping that =
someone can localise the problem. with the file below the redraw does =
not happen unless I use the refresh button. I use Mozilla1.3 or IE 6. =
and I have the problem on both RedHat 8.0 amd W2K. Note that if I =
substitute the jBox routines below with the mapplet routines and use the =
mapplet applet then it works properly (with mapplet I have a problem =
making the box on/off properly).=20
the file below is the standard demo file with the additional jBox =
javascript & applet.=20
I would very much appreciate any further suggestions on this. Thanks a =
lot for your help
Ioannis
<html>
<head><title></title>
<script language=3D"JavaScript">
function setbox_handler(name, minx, miny, maxx, maxy, redraw) {
document.mapserv.imgbox.value =3D minx + " " + miny + " " + =
maxx + " " + maxy;
document.mapserv.imgxy.value =3D minx + " " + miny;
=20
if (redraw)=20
document.mapserv.submit();
}
function seterror_handler(message) {
alert(message);
}=20
</script>
=20
</head>
<body bgcolor=3D#FFFFFF>
<center><h1>Map Server Demo</h1></center>
<hr>
<form name=3D"mapserv" method=3D"get" action=3D"[program]">
<center>
<table border=3D0 cellspacing=3D0 cellpadding=3D4 bgcolor=3Dcyan>
<tr>
<td valign=3D"top" align=3Dcenter>
<table cellpadding=3D"0" cellspacing=3D"0" border=3D"0">
<tr>
<td colspan=3D"2">
<applet codebase=3D"/java/jBox" code=3D"jBox.class" width=3D"600"
height=3D"600" name=3D"jBox" MAYSCRIPT>
<param name=3D"image" value=3D"http://[host][img]">
<param name=3D"jitter" value=3D"10">
<param name=3D"thickness" value=3D"2">
<param name=3D"color" value=3D"black">
</applet>
<!-- <INPUT NAME=3D"img" TYPE=3D"image" SRC=3D"[img]" width=3D1050 =
height=3D600 border=3D0></td>
-->
</tr>
</table>
<table>
<tr>
<td align=3D"center"><img src=3D"[scalebar]"></td>
</tr>
</table>
</td>
<td valign=3D"top" bgcolor=3D#ffffff>
<table cellpadding=3D"5" cellspacing=3D"0" border=3D"0" =
bgcolor=3D"#ffffff">
<tr><td>
<center><input type=3D"submit" value=3D"Refresh/Query"></center>
<p>
<input type=3D"radio" name=3D"mode" value=3D"browse" checked> =
<b>Browse map</b><br>
<input type=3D"radio" name=3D"mode" value=3D"query"> <b>Query =
feature</b><br>
<input type=3D"radio" name=3D"mode" value=3D"nquery"> <b>Query =
multiple features</b>
<hr>
<p>
<b>Select Layers to Display: </b><br>
<select multiple name=3D"layer" size=3D3>
<option value=3D"airports" [airports_select]> Airports
<option value=3D"cities" [cities_select]> Cities
<option value=3D"lakespy2" [lakespy2_select]> Lakes & Rivers
<option value=3D"dlgstln2" [dlgstln2_select]> Streams
<option value=3D"roads" [roads_select]> Roads
<option value=3D"twprgpy3" [twprgpy3_select]> Townships
</select>
<p>
Zoom In <input type=3Dradio name=3Dzoomdir value=3D1 =
[zoomdir_1_check]>=20
Pan <input type=3Dradio name=3Dzoomdir value=3D0 =
[zoomdir_0_check]>
Zoom Out <input type=3Dradio name=3Dzoomdir value=3D-1 =
[zoomdir_-1_check]>
<p>
Zoom Size <input type=3Dtext name=3Dzoomsize size=3D4 =
value=3D[zoomsize]>
<p>
<font size=3D+1><b>Legend</b></font><br><hr>
<img src=3D"[legend]"><hr>
<p>
<center><INPUT NAME=3D"ref" TYPE=3D"image" SRC=3D"[ref]" =
border=3D"0"></center>
</td></tr></table>
</td></tr>
</table>
</center>
<input type=3D"hidden" name=3D"imgxy" value=3D"524.5 299.5">
<input type=3D"hidden" name=3D"imgext" value=3D"[mapext]">
<input type=3D"hidden" name=3D"map" value=3D"[map]">
<input type=3D"hidden" name=3D"savequery" value=3D"true">
<input type=3D"hidden" name=3D"imgbox" value=3D"-1 -1 -1 -1">
<input type=3D"hidden" name=3D"program" value=3D"[program]">
<input type=3D"hidden" name=3D"map_web_imagepath" =
value=3D"[map_web_imagepath]">
<input type=3D"hidden" name=3D"map_web_imageurl" =
value=3D"[map_web_imageurl]">
</form>
</body></html>
Ioannis Kanellopoulos
Institute for the Environment and Sustainability
Land Management Unit,=20
TP 262, 21020 Ispra(VA), Italy.
Tel: +39 0332785115
Fax: +39 0332789803
web: http://ies.jrc.cec.eu.int, http://ams.egeo.sai.jrc.it
e-mail: ioannis.kanellopoulos at jrc.it, i.kanellopoulos at computer.org
------=_NextPart_001_0012_01C3247E.8F96A680
Content-Type: text/html;
charset="Windows-1252"
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=3Dwindows-1252">
<META content=3D"MSHTML 6.00.2800.1141" name=3DGENERATOR>
<STYLE></STYLE>
</HEAD>
<BODY bgColor=3D#ffffff>
<DIV><FONT face=3DArial size=3D2>Dear All,</FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT> </DIV>
<DIV><FONT face=3DArial size=3D2>A couple of weeks ago I posted a =
message about some=20
problems I encountered with mapplet and jBox. Unfortunately I have not =
been able=20
to solve the problem yet, even though Richard Greenwood provided a =
couple of=20
suggestions. </FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT> </DIV>
<DIV><FONT face=3DArial size=3D2>Below I include the jBox version of the =
html=20
template hoping that someone can localise the problem. with the =
file below=20
the redraw does not happen unless I use the refresh button. I use =
Mozilla1.3 or=20
IE 6. and I have the problem on both RedHat 8.0 amd W2K. Note that if I=20
substitute the jBox routines below with the mapplet routines and use the =
mapplet=20
applet then it works properly (with mapplet I have a problem making the =
box=20
on/off properly). </FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT> </DIV>
<DIV><FONT face=3DArial size=3D2>the file below is the standard demo =
file with the=20
additional jBox javascript & applet. </FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT> </DIV>
<DIV><FONT face=3DArial size=3D2>I would very much appreciate any =
further=20
suggestions on this. Thanks a lot for your help</FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT> </DIV>
<DIV><FONT face=3DArial size=3D2>Ioannis</FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT> </DIV>
<DIV> </DIV>
<DIV><FONT face=3DArial=20
size=3D2><html><BR><head><title></title><BR><s=
cript=20
language=3D"JavaScript"></FONT></DIV>
<DIV> </DIV>
<DIV><FONT face=3DArial =
size=3D2> function=20
setbox_handler(name, minx, miny, maxx, maxy, redraw)=20
{<BR> =20
document.mapserv.imgbox.value =3D minx + " " + miny + " " + maxx + " " + =
maxy;<BR> =20
document.mapserv.imgxy.value =3D minx + " " + =
miny;<BR> =20
<BR> if (redraw)=20
<BR> document.mapserv.submit();</FONT></DIV>
<DIV> </DIV>
<DIV><FONT face=3DArial =
size=3D2> =20
}<BR> function=20
seterror_handler(message)=20
{<BR> =20
alert(message);<BR> }=20
<BR></script><BR> <BR></head><BR><body=20
bgcolor=3D#FFFFFF></FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT> </DIV>
<DIV><FONT face=3DArial size=3D2><center><h1>Map=20
Server Demo</h1></center><BR><hr></FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT> </DIV>
<DIV><FONT face=3DArial size=3D2><form name=3D"mapserv" =
method=3D"get" =20
action=3D"[program]"><BR><center><BR><table border=3D0 =
cellspacing=3D0=20
cellpadding=3D4 =
bgcolor=3Dcyan><BR> <tr><BR> <td=20
valign=3D"top" align=3Dcenter><BR> <table =
cellpadding=3D"0"=20
cellspacing=3D"0"=20
border=3D"0"><BR> <tr><BR> &nb=
sp; <td=20
colspan=3D"2"><BR> <applet =
codebase=3D"/java/jBox"=20
code=3D"jBox.class"=20
width=3D"600"<BR> &n=
bsp; =20
height=3D"600" name=3D"jBox"=20
MAYSCRIPT><BR> &n=
bsp; =20
<param name=3D"image" value=3D"<A=20
href=3D"http://[host][img">http://[host][img</A>]"><BR> &nb=
sp; <param=20
name=3D"jitter" value=3D"10"><BR> =20
<param name=3D"thickness"=20
value=3D"2"><BR> =
<param=20
name=3D"color"=20
value=3D"black"><BR> </applet></FONT></DI=
V>
<DIV> </DIV>
<DIV><FONT face=3DArial size=3D2> <!-- =
<INPUT=20
NAME=3D"img" TYPE=3D"image" SRC=3D"[img]" width=3D1050 height=3D600=20
border=3D0></td><BR> --><BR> &nbs=
p; </tr><BR> </table><BR> &n=
bsp; <table><BR> <tr><BR> &n=
bsp; <td=20
align=3D"center"><img=20
src=3D"[scalebar]"></td><BR> </tr><=
BR> </table><BR> </td><BR> &=
nbsp;<td=20
valign=3D"top" bgcolor=3D#ffffff><BR> <table =
cellpadding=3D"5"=20
cellspacing=3D"0" border=3D"0" =
bgcolor=3D"#ffffff"><BR> =20
<tr><td><BR> =
<center><input=20
type=3D"submit"=20
value=3D"Refresh/Query"></center><BR> &nb=
sp;=20
<p></FONT></DIV>
<DIV> </DIV>
<DIV><FONT face=3DArial size=3D2> =
<input=20
type=3D"radio" name=3D"mode" value=3D"browse" checked> =
<b>Browse=20
map</b><br><BR> <input =
type=3D"radio"=20
name=3D"mode" value=3D"query"> <b>Query=20
feature</b><br><BR> <input=20
type=3D"radio" name=3D"mode" value=3D"nquery"> <b>Query =
multiple=20
features</b></FONT></DIV>
<DIV> </DIV>
<DIV><FONT face=3DArial size=3D2> =20
<hr></FONT></DIV>
<DIV> </DIV>
<DIV><FONT face=3DArial size=3D2> =20
<p><BR> <b>Select Layers to =
Display:=20
</b><br><BR> <select =
multiple=20
name=3D"layer" size=3D3></FONT></DIV>
<DIV><FONT face=3DArial =
size=3D2> =20
<option value=3D"airports" [airports_select]>=20
Airports<BR> <option =
value=3D"cities"=20
[cities_select]> Cities<BR> =
<option value=3D"lakespy2" [lakespy2_select]> Lakes &=20
Rivers<BR> <option =
value=3D"dlgstln2"=20
[dlgstln2_select]> =
Streams<BR> =20
<option value=3D"roads" [roads_select]>=20
Roads<BR> <option =
value=3D"twprgpy3"=20
[twprgpy3_select]> Townships<BR> =20
</select></FONT></DIV>
<DIV> </DIV>
<DIV><FONT face=3DArial size=3D2> =20
<p><BR> Zoom In <input =
type=3Dradio=20
name=3Dzoomdir value=3D1 [zoomdir_1_check]> =
<BR> =20
Pan <input type=3Dradio name=3Dzoomdir value=3D0=20
[zoomdir_0_check]><BR> Zoom Out =
<input=20
type=3Dradio name=3Dzoomdir value=3D-1=20
[zoomdir_-1_check]><BR> =20
<p><BR> Zoom Size <input =
type=3Dtext=20
name=3Dzoomsize size=3D4 =
value=3D[zoomsize]><BR> =20
<p></FONT></DIV>
<DIV> </DIV>
<DIV><FONT face=3DArial size=3D2> <font =
size=3D+1><b>Legend</b></font><br><hr><B=
R> =20
<img src=3D"[legend]"><hr></FONT></DIV>
<DIV> </DIV>
<DIV><FONT face=3DArial size=3D2> =20
<p><BR> <center><INPUT =
NAME=3D"ref"=20
TYPE=3D"image" SRC=3D"[ref]" =
border=3D"0"></center><BR> =20
</td></tr></table></FONT></DIV>
<DIV> </DIV>
<DIV><FONT face=3DArial size=3D2> =20
</td></tr><BR></table><BR></center></FONT></DIV>
<DIV> </DIV>
<DIV><FONT face=3DArial size=3D2><input type=3D"hidden" =
name=3D"imgxy" value=3D"524.5=20
299.5"><BR><input type=3D"hidden" name=3D"imgext"=20
value=3D"[mapext]"><BR><input type=3D"hidden" name=3D"map"=20
value=3D"[map]"><BR><input type=3D"hidden" name=3D"savequery"=20
value=3D"true"><BR><input type=3D"hidden" name=3D"imgbox" =
value=3D"-1 -1 -1=20
-1"></FONT></DIV>
<DIV> </DIV>
<DIV><FONT face=3DArial size=3D2><input type=3D"hidden" =
name=3D"program"=20
value=3D"[program]"><BR><input type=3D"hidden" =
name=3D"map_web_imagepath"=20
value=3D"[map_web_imagepath]"><BR><input type=3D"hidden"=20
name=3D"map_web_imageurl" value=3D"[map_web_imageurl]"></FONT></DIV>
<DIV> </DIV>
<DIV><FONT face=3DArial size=3D2></form></FONT></DIV>
<DIV> </DIV>
<DIV><FONT face=3DArial size=3D2></body></html></FONT></DIV>
<DIV> </DIV>
<DIV><FONT face=3DArial size=3D2></FONT> </DIV>
<DIV><FONT face=3DArial size=3D2>Ioannis Kanellopoulos<BR>Institute for =
the=20
Environment and Sustainability<BR>Land Management Unit, </FONT></DIV>
<DIV><FONT face=3DArial size=3D2>TP 262, 21020 Ispra(VA), Italy.<BR>Tel: =
+39=20
0332785115<BR>Fax: +39 0332789803</FONT></DIV>
<DIV> </DIV>
<DIV><FONT face=3DArial size=3D2>web: <A=20
href=3D"http://ies.jrc.cec.eu.int">http://ies.jrc.cec.eu.int</A>, <A=20
href=3D"http://ams.egeo.sai.jrc.it">http://ams.egeo.sai.jrc.it</A><BR>e-m=
ail: <A=20
href=3D"mailto:ioannis.kanellopoulos at jrc.it">ioannis.kanellopoulos at jrc.it=
</A>, <A=20
href=3D"mailto:i.kanellopoulos at computer.org">i.kanellopoulos at computer.org=
</A></FONT></DIV></BODY></HTML>
------=_NextPart_001_0012_01C3247E.8F96A680--
------=_NextPart_000_0011_01C3247E.8F96A680
Content-Type: text/x-vcard;
name="Ioannis Kanellopoulos.vcf"
Content-Transfer-Encoding: quoted-printable
Content-Disposition: attachment;
filename="Ioannis Kanellopoulos.vcf"
BEGIN:VCARD
VERSION:2.1
N:Kanellopoulos;Ioannis
FN:Ioannis Kanellopoulos
NICKNAME:me
ORG:Land Cover - Land Use Unit
TEL;WORK;VOICE:+39 0332785115
TEL;WORK;FAX:+39 0332789803
ADR;WORK;ENCODING=3DQUOTED-PRINTABLE:;;Institute for the Environment & =
Sustainability=3D0A European Commission, Joi=3D
nt Research Centre;TP 262;Ispra - (VA);I-21020;Italy
LABEL;WORK;ENCODING=3DQUOTED-PRINTABLE:Institute for the Environment & =
Sustainability=3D0A European Commission, Joint=3D
Research Centre=3D0D=3D0ATP 262, Ispra - (VA) I-21020=3D0D=3D0AItaly
URL;WORK:http://ams.egeo.sai.jrc.it
EMAIL;PREF;INTERNET:ioannis.kanellopoulos at jrc.it
REV:20030527T163408Z
END:VCARD
------=_NextPart_000_0011_01C3247E.8F96A680--
More information about the MapServer-users
mailing list