[mapserver-users] imgbox works on Netscape but not Internet Explorer

Hockaday, John JohnHockaday at auslig.gov.au
Tue Jun 19 20:08:22 EDT 2001


Hi all,

I am using some javascript that sets the imgbox variable after a user drags
a box 
across the mapserver image.  This is then submitted to mapserv.  The drag
box 
seems to work on both Internet Explorer (IE) and Netscape but for some
reason 
IE seems to pass the img.x and img.y variables to mapserv in the query
string 
and so, instead of zooming to the defined box (as Netscape does), mapserv 
uses the img.x and img.y values to execute either zoom in, pan or zoom out 
according to which radio button has been selected by the user.   Thus
Netscape 
zooms in to the defined box are but IE zooms in, pans or zooms out.

Has anyone else observed this problem and if so were you able to solve it?

I am using MapServer Version 3.3.011 -FreeType -TIFF -EPPL7 -JPEG on a 
Sun Solaris 2.6 UNIX box with Apache 1.3.12 as the web server.  The browsers

are Netscape Communicator 4.77 and Internet Explorer version 5.00.2314.1003.

My code to set the imgbox is as follows:

Within the form I have:
   <input type="hidden" name="imgxy" value="">
   <input type="hidden" name="imgbox" value="">
   <input type="hidden" name="imgext" value="[mapext]">
   <input type="hidden" name="map" value="[map]">

Within the javascript I have:
   document.mapserv.imgxy.value = "";
   document.mapserv.imgbox.value = tx1 + " " + ty1 + " " + tx2 + " " + ty2;
   document.mapserv.submit();

Thanks for any help or direction that you can give me.

John



More information about the mapserver-users mailing list