[Mapserver-users] mapplet/Jbox problem - again

Ioannis Kanellopoulos ioannis.kanellopoulos at jrc.it
Wed May 28 06:12:01 EDT 2003


This is a multi-part message in MIME format.

------=_NextPart_000_0064_01C32512.5820CED0
Content-Type: text/plain;
	charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable

Rich,

Yes, it does work without the "if(redraw)" line. But where is the redraw =
flag set?=20

thanks a lot=20

yannis

----- Original Message -----=20
  From: Richard Greenwood=20
  To: Ioannis Kanellopoulos=20
  Cc: mapserver-users at lists.gis.umn.edu=20
  Sent: Tuesday, May 27, 2003 9:35 PM
  Subject: Re: [Mapserver-users] mapplet/Jbox problem - again


  At 06:34 PM 5/27/2003 +0200, you wrote:


    Dear All,
    =20
    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
    =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
    =20

  Try leaving out the if (redraw), but leave in the leave in the =
document.mapserv.submit(); (see below) Let me know if that works.

  Rich


    <html>
    <head><title></title>
    <script language=3D"JavaScript">
    =20
            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
  ^^^^ Remove proceeding line

       document.mapserv.submit();
    =20
            }
            function seterror_handler(message) {
              alert(message);
            }=20
    </script>  =20

  Richard W. Greenwood, PLS
  Greenwood Mapping, Inc.
  Rich at GreenwoodMap.com
  (307) 733-0203
  http://www.GreenwoodMap.com=20

------=_NextPart_000_0064_01C32512.5820CED0
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 6.00.2800.1141" name=3DGENERATOR>
<STYLE></STYLE>
</HEAD>
<BODY bgColor=3D#ffffff>
<DIV><FONT face=3DArial size=3D2>Rich,</FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2>Yes, it does work without the =
"if(redraw)" line.=20
But where is the redraw flag set? </FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2>thanks a lot </FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2>yannis</FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT>&nbsp;</DIV>
<DIV>----- Original Message ----- </DIV>
<BLOCKQUOTE dir=3Dltr=20
style=3D"PADDING-RIGHT: 0px; PADDING-LEFT: 5px; MARGIN-LEFT: 5px; =
BORDER-LEFT: #000000 2px solid; MARGIN-RIGHT: 0px">
  <DIV=20
  style=3D"BACKGROUND: #e4e4e4; FONT: 10pt arial; font-color: =
black"><B>From:</B>=20
  <A title=3DRich at GreenwoodMap.com =
href=3D"mailto:Rich at GreenwoodMap.com">Richard=20
  Greenwood</A> </DIV>
  <DIV style=3D"FONT: 10pt arial"><B>To:</B> <A =
title=3Dioannis.kanellopoulos at jrc.it=20
  href=3D"mailto:ioannis.kanellopoulos at jrc.it">Ioannis Kanellopoulos</A> =
</DIV>
  <DIV style=3D"FONT: 10pt arial"><B>Cc:</B> <A=20
  title=3Dmapserver-users at lists.gis.umn.edu=20
  =
href=3D"mailto:mapserver-users at lists.gis.umn.edu">mapserver-users at lists.g=
is.umn.edu</A>=20
  </DIV>
  <DIV style=3D"FONT: 10pt arial"><B>Sent:</B> Tuesday, May 27, 2003 =
9:35 PM</DIV>
  <DIV style=3D"FONT: 10pt arial"><B>Subject:</B> Re: [Mapserver-users]=20
  mapplet/Jbox problem - again</DIV>
  <DIV><BR></DIV>At 06:34 PM 5/27/2003 +0200, you wrote:<BR><BR>
  <BLOCKQUOTE class=3Dcite cite=3D"" type=3D"cite"><FONT face=3Darial =
size=3D2>Dear=20
    All,</FONT><BR>&nbsp;<BR><FONT face=3Darial size=3D2>A couple of =
weeks ago I=20
    posted a message about some problems I encountered with mapplet and =
jBox.=20
    Unfortunately I have not been able to solve the problem yet, even =
though=20
    Richard Greenwood provided a couple of suggestions.=20
    </FONT><BR>&nbsp;<BR><FONT face=3Darial size=3D2>Below I include the =
jBox=20
    version of the html template hoping that someone can localise the =
problem.=20
    with the file below the redraw does not happen unless I use the =
refresh=20
    button. I use Mozilla1.3 or IE 6. and I have the problem on both =
RedHat 8.0=20
    amd W2K. Note that if I substitute the jBox routines below with the =
mapplet=20
    routines and use the mapplet applet then it works properly (with =
mapplet I=20
    have a problem making the box on/off properly).=20
  </FONT><BR>&nbsp;</BLOCKQUOTE><BR>Try leaving out the if (redraw), but =
leave=20
  in the leave in the <FONT face=3Darial =
size=3D2>document.mapserv.submit(); (see=20
  below) Let me know if that works.<BR><BR></FONT>Rich<BR><BR>
  <BLOCKQUOTE class=3Dcite cite=3D"" type=3D"cite"><FONT face=3Darial=20
    =
size=3D2>&lt;html&gt;<BR>&lt;head&gt;&lt;title&gt;&lt;/title&gt;<BR>&lt;s=
cript=20
    language=3D"JavaScript"&gt;</FONT><BR>&nbsp;<BR><FONT face=3Darial=20
    size=3D2>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; function=20
    setbox_handler(name, minx, miny, maxx, maxy, redraw)=20
    {<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;=20
    document.mapserv.imgbox.value =3D minx + " " + miny + " " + maxx + " =
" +=20
    maxy;<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;=20
    document.mapserv.imgxy.value =3D minx + " " + =
miny;<BR>&nbsp;&nbsp;&nbsp;=20
    <BR>&nbsp;&nbsp;&nbsp; if (redraw) </FONT></BLOCKQUOTE><FONT =
face=3Darial>^^^^=20
  Remove proceeding line<BR></FONT>
  <BLOCKQUOTE class=3Dcite cite=3D"" type=3D"cite"><FONT face=3Darial=20
    size=3D2>&nbsp;&nbsp; =
document.mapserv.submit();</FONT><BR>&nbsp;<BR><FONT=20
    face=3Darial size=3D2>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;=20
    }<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; function=20
    seterror_handler(message)=20
    {<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;=20
    alert(message);<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; }=20
    <BR>&lt;/script&gt;&nbsp;&nbsp; </FONT></BLOCKQUOTE><X-SIGSEP>
  <P></X-SIGSEP><BR>Richard W. Greenwood, PLS<BR>Greenwood Mapping,=20
  Inc.<BR>Rich at GreenwoodMap.com<BR>(307) 733-0203<BR><A=20
  href=3D"http://www.greenwoodmap.com/"=20
  eudora=3D"autourl">http://www.GreenwoodMap.com</A> =
</P></BLOCKQUOTE></BODY></HTML>

------=_NextPart_000_0064_01C32512.5820CED0--




More information about the mapserver-users mailing list