Hi all,

I have implemented image swapping with jBox. When I try panning, and Zooming out everything works fine the first time I move my map. But in the second (and subsequent) attempts fail Zooming in the map. Anyone knows how to correct it? I´m novice in _javascript_

It´s the code:

<html><head><title>JBOX</title>

<SCRIPT LANGUAGE="_javascript_">

function setbox_handler(name, minx, miny, maxx, maxy) {

document.mapserv.imgbox.value = minx + " " + miny + " " + maxx + " " + maxy;

document.mapserv.imgxy.value = minx + " " + miny;

// Additional code can go here prior to the form submit, below.

// For example, form validation code.

document.mapserv.submit();

}

function seterror_handler(message) {

alert(message);

}

function reset_handler(name, minx, miny, maxx, maxy) { }

</SCRIPT>

</head>

<body>

<form name="mapserv" method=GET action="" >

<input type="hidden" name="program" value="[program]">

<input type="hidden" name="map" value="[map]">

<input type="hidden" name="imgext" value="[mapext]">

<input type="hidden" name="imgxy" value="[center]">

<input type="hidden" name="zoomsize" value="2">

<input type="hidden" name="imgbox" value="-1 -1 -1 -1">

<applet codebase="" archive="jBox.jar" code="jBox.class" width="400" height="300" name="jBox" MAYSCRIPT>

<param name="image" value="http://[host][img]">

</applet>

<br>

Zoom In <input type=radio name=zoomdir value=1 [zoomdir_1_check]>

Pan <input type=radio name=zoomdir value=0 [zoomdir_0_check]>

Zoom Out <input type=radio name=zoomdir value=-1 [zoomdir_-1_check]>

<input type="submit" value="Refresh">

<br> </form>

</body>

</html>

Best Regards,

Marcello Benigno

Reply via email to