[Mapserver-users] mapplet/Jbox problem - again

Richard Greenwood Rich at GreenwoodMap.com
Tue May 27 15:35:34 EDT 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>
&nbsp;<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>
&nbsp;<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>
&nbsp;</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>&lt;html&gt;<br>
&lt;head&gt;&lt;title&gt;&lt;/title&gt;<br>
&lt;script language=&quot;JavaScript&quot;&gt;</font><br>
&nbsp;<br>
<font face="arial" size=2>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
function setbox_handler(name, minx, miny, maxx, maxy, redraw) {<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
document.mapserv.imgbox.value = minx + &quot; &quot; + miny + &quot;
&quot; + maxx + &quot; &quot; + maxy;<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
document.mapserv.imgxy.value = minx + &quot; &quot; + miny;<br>
&nbsp;&nbsp;&nbsp; <br>
&nbsp;&nbsp;&nbsp; if (redraw)
</font></blockquote><font face="arial">^^^^ Remove proceeding line<br>
</font><blockquote type=cite class=cite cite><font face="arial" size=2>&nbsp;&nbsp;
document.mapserv.submit();</font><br>
&nbsp;<br>
<font face="arial" size=2>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
}<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; function
seterror_handler(message) {<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
alert(message);<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; } <br>
&lt;/script&gt;&nbsp;&nbsp; </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