IE6 compatibility is a mess, no matter what you are dealing with.<br><br>I feel your pain.<br><br>My first suggestion would be to try to convince your client that IE6 compatibility is unnecessary.<br><br>If that fails, try to find something that works with IE6. Anything. Do whatever you can to get it to work.<br>
<br>Then put in a browser test in the javascript. If the browser is IE6, use the compatible code. Otherwise, use the default code.<br><br>-Adam<br><br><div class="gmail_quote">On Tue, May 26, 2009 at 4:51 AM, sendeman <span dir="ltr"><<a href="mailto:martijnsendenspam@gmail.com">martijnsendenspam@gmail.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;"><br>
Hi All,<br>
<br>
Does anybody have any ideas that might be of help for the problem I<br>
described previously? Thanks a lot in advance for any help.<br>
<br>
If I didn't explain the problem well enough, please let me know, so I can<br>
clarify it.<br>
<br>
Best regards,<br>
Martijn Senden.<br>
<div><div></div><div class="h5"><br>
<br>
<br>
sendeman wrote:<br>
><br>
> Hi all,<br>
><br>
> I'm trying to make a 'fluid' layout, in which the viewport of the map<br>
> changes with changes in the size of the browser window. I have some html<br>
> and css worked out that do this without javascript in IE6. The only<br>
> problem I have is that the initial zoom level doesn't work in IE 6. IE 6<br>
> zooms in to the maximum level. Other browsers (IE7, FF, Safari, Chrome) do<br>
> set the zoom level correctly.<br>
><br>
> I set the zoom level as follows:<br>
><br>
> map.zoomToExtent(new<br>
> OpenLayers.Bounds(3.27392578125,50.69471783819287,7.294921875,53.67068019347264));<br>
><br>
> What is it that makes IE 6 go wrong?<br>
><br>
> Any help would be greatly appreciated!<br>
><br>
> Below is the entire code of my test-site.<br>
><br>
> Best regards,<br>
> Martijn Senden.<br>
><br>
> ____________________________<br>
> __________</CODE>__________<br>
> ____________________________<br>
><br>
> <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN"<br>
> "<a href="http://www.w3.org/TR/html4/strict.dtd" target="_blank">http://www.w3.org/TR/html4/strict.dtd</a>"><br>
> <html lang="NL"><br>
> <head><br>
><br>
> <title>minOpenLayers.aspx</title><br>
><br>
> <script type="text/javascript" src="javascript/OpenLayers.js"></script><br>
><br>
> <!--[if lt IE 8]><br>
> <script type="text/javascript"<br>
> src="<a href="http://ie7-js.googlecode.com/svn/version/2.0%28beta3%29/IE8.js" target="_blank">http://ie7-js.googlecode.com/svn/version/2.0(beta3)/IE8.js</a>"></script><br>
> <![endif]--><br>
><br>
> <script type="text/javascript"><br>
><br>
> var map, layer;<br>
><br>
> function init(){<br>
><br>
> map = new OpenLayers.Map( 'map' );<br>
><br>
> layer = new OpenLayers.Layer.WMS( "OpenLayers WMS",<br>
> "<a href="http://labs.metacarta.com/wms/vmap0" target="_blank">http://labs.metacarta.com/wms/vmap0</a>", {layers: 'basic'} );<br>
><br>
> map.addLayer(layer);<br>
><br>
> map.zoomToExtent(new<br>
> OpenLayers.Bounds(3.27392578125,50.69471783819287,7.294921875,53.67068019347264));<br>
> }<br>
> </script><br>
><br>
> <style type="text/css"><br>
><br>
><br>
><br>
> #map<br>
><br>
> {<br>
><br>
> background-color: Red;<br>
><br>
> position: absolute;<br>
><br>
> width: 100%;<br>
><br>
> height: 100%;<br>
><br>
> }<br>
><br>
><br>
><br>
> #mapWrapper {<br>
><br>
> position: absolute;<br>
><br>
> background-color: Blue;<br>
><br>
> top: 76px;<br>
><br>
> bottom: 0px;<br>
><br>
> left: 0px;<br>
><br>
> right: 0px;<br>
><br>
> }<br>
><br>
> </style><br>
><br>
><br>
><br>
> </head><br>
><br>
><br>
><br>
> <body onload="init()"><br>
><br>
> <div id="mapWrapper"><div id="map" class="smallmap"></div></div><br>
><br>
> </body><br>
><br>
> </html><br>
> ____________________________<br>
> __________</CODE>__________<br>
> ____________________________<br>
><br>
<br>
--<br>
</div></div>View this message in context: <a href="http://n2.nabble.com/ZoomToExtent-works-in-Firefox%2C-Safari-and-IE7%2C-but-not-in-IE6-tp2969934p2973551.html" target="_blank">http://n2.nabble.com/ZoomToExtent-works-in-Firefox%2C-Safari-and-IE7%2C-but-not-in-IE6-tp2969934p2973551.html</a><br>
<div><div></div><div class="h5">Sent from the OpenLayers Users mailing list archive at Nabble.com.<br>
<br>
_______________________________________________<br>
Users mailing list<br>
<a href="mailto:Users@openlayers.org">Users@openlayers.org</a><br>
<a href="http://openlayers.org/mailman/listinfo/users" target="_blank">http://openlayers.org/mailman/listinfo/users</a><br>
</div></div></blockquote></div><br>