[Mapserver-users] mapplet/Jbox problem - again

Richard Greenwood Rich at GreenwoodMap.com
Tue May 27 12:35:34 PDT 2003


--=======539C3037=======
Content-Type: multipart/alternative; x-avg-checked=avg-ok-678871B9; boundary="=====================_708799859==.ALT"


--=====================_708799859==.ALT
Content-Type: text/plain; x-avg-checked=avg-ok-678871B9; charset=us-ascii; format=flowed
Content-Transfer-Encoding: 8bit

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

>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.
>
>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).
>

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="JavaScript">
>
>         function setbox_handler(name, minx, miny, maxx, maxy, redraw) {
>           document.mapserv.imgbox.value = minx + " " + miny + " " + maxx 
> + " " + maxy;
>           document.mapserv.imgxy.value = minx + " " + miny;
>
>     if (redraw)
^^^^ Remove proceeding line
>    document.mapserv.submit();
>
>         }
>         function seterror_handler(message) {
>           alert(message);
>         }
></script>


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

--=====================_708799859==.ALT
Content-Type: text/html; x-avg-checked=avg-ok-678871B9; charset=us-ascii
Content-Transfer-Encoding: 8bit

<html>
<body>
At 06:34 PM 5/27/2003 +0200, you wrote:<br><br>
<blockquote type=cite class=cite cite><font face="arial" size=2>Dear
All,</font><br>
 <br>
<font face="arial" size=2>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. </font><br>
 <br>
<font face="arial" size=2>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). </font><br>
 </blockquote><br>
Try leaving out the if (redraw), but leave in the leave in the
<font face="arial" size=2>document.mapserv.submit(); (see below) Let me
know if that works.<br><br>
</font>Rich<br><br>
<blockquote type=cite class=cite cite><font face="arial" size=2><html><br>
<head><title></title><br>
<script language="JavaScript"></font><br>
 <br>
<font face="arial" size=2>       
function setbox_handler(name, minx, miny, maxx, maxy, redraw) {<br>
         
document.mapserv.imgbox.value = minx + " " + miny + "
" + maxx + " " + maxy;<br>
         
document.mapserv.imgxy.value = minx + " " + miny;<br>
    <br>
    if (redraw)
</font></blockquote><font face="arial">^^^^ Remove proceeding line<br>
</font><blockquote type=cite class=cite cite><font face="arial" size=2>  
document.mapserv.submit();</font><br>
 <br>
<font face="arial" size=2>       
}<br>
        function
seterror_handler(message) {<br>
         
alert(message);<br>
        } <br>
</script>   </font></blockquote>
<x-sigsep><p></x-sigsep>
<br>
Richard W. Greenwood, PLS<br>
Greenwood Mapping, Inc.<br>
Rich at GreenwoodMap.com<br>
(307) 733-0203<br>
<a href="http://www.greenwoodmap.com/" eudora="autourl">http://www.GreenwoodMap.com</a></body>
</html>


--=====================_708799859==.ALT--

--=======539C3037=======--




More information about the MapServer-users mailing list