[Mapserver-users] Mapplet not working...
Richard Greenwood
Rich at GreenwoodMap.com
Wed Aug 6 07:25:22 PDT 2003
At 01:21 PM 8/6/2003 +0200, you wrote:
>Hi
>
>I have tried to implement the zoom-box facility of mapplet.
>I have a virtual directory (IIS 5.0) set up to C:\MapServer\Project1 (on
>Windows 2000)
>I unzipped mapplet.zip to C:\MapServer\Project1\java\mapplet\
>and followed all the steps of
>1) inserted
><SCRIPT LANGUAGE="JavaScript">
> function mapplet_apply(name, minx, miny, maxx, maxy, redraw) {
> document.mapserv.imgbox.value = minx + " " + miny + " " + maxx + "
> " + maxy;
> document.mapserv.imgxy.value = minx + " " + miny;
> }
> function mapplet_error(message) {
> alert(message);
> }
></SCRIPT>
>into the <HEAD></HEAD>
>
>2) changing the form header to <form name="mapserv" method=GET
>action="[program]">
>
>3) putting in
><input type="hidden" name="imgxy" value="299.5 299.5">
><input type="hidden" name="imgbox" value="-1 -1 -1 -1">
>
>4) swopping <INPUT NAME="img" TYPE="image" SRC="[img]" width="600"
>height="600" border=1> for
> <applet codebase="/java/mapplet" code="mapplet.class" width="600"
> height="600" name="mapplet"
^^^^^^^^^^^^^^^^^^^^^^
Are you sure you want "/" there? Do you have a virtual directory "java"
setup in the root of your default web site? Also note that the newest
version of mapplet is now called jBox.
Rich
>MAYSCRIPT>
> <param name="image"
> value="<http://>http://[host][img]">
> </applet>
>
>Unfortunately when I tried to open the page, the image was now just a grey
>area covering 600x600 and no zoom box could be generated by dragging the mouse.
>
>I decided to wrap the applet code to
> <object width="600" height="600"
> classid="clsid:8AD9C840-044E-11D1-B3E9-00805F499D93"
>
>codebase="<http://java.sun.com/products/plugin/autodl/jinstall-1_4-windows-i586.cab#Version=1,4,0,0>http://java.sun.com/products/plugin/autodl/jinstall-1_4-windows-i586.cab#Version=1,4,0,0"
>
> standby="Please wait">
> <applet codebase="/java/mapplet" code="mapplet.class" width="600"
> height="600" name="mapplet" MAYSCRIPT>
> <param name="image" value="<http://>http://[host][img]">
> </applet>
> </object>
>in order to install JRE1.4 but once it downloaded, it corrupted the
>browser (IE6) and asked me to debug the browser.
>I then took out the <OBJECT> wrapper, (and the browser worked again) but
>now it puts a red 'X' in the map image and says "Loading Java Applet
>failed...."
>
>Is there anything that I am doing wrong.
>
>Regards
>Kevin
Richard W. Greenwood, PLS
Greenwood Mapping, Inc.
Rich <at> GreenwoodMap <dot> com
(307) 733-0203
http://www.GreenwoodMap.com
More information about the MapServer-users
mailing list