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">&lt;<a href="mailto:martijnsendenspam@gmail.com">martijnsendenspam@gmail.com</a>&gt;</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&#39;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>
&gt;<br>
&gt; Hi all,<br>
&gt;<br>
&gt; I&#39;m trying to make a &#39;fluid&#39; layout, in which the viewport of the map<br>
&gt; changes with changes in the size of the browser window. I have some html<br>
&gt; and css worked out that do this without javascript in IE6. The only<br>
&gt; problem I have is that the initial zoom level doesn&#39;t work in IE 6. IE 6<br>
&gt; zooms in to the maximum level. Other browsers (IE7, FF, Safari, Chrome) do<br>
&gt; set the zoom level correctly.<br>
&gt;<br>
&gt; I set the zoom level as follows:<br>
&gt;<br>
&gt; map.zoomToExtent(new<br>
&gt; OpenLayers.Bounds(3.27392578125,50.69471783819287,7.294921875,53.67068019347264));<br>
&gt;<br>
&gt; What is it that makes IE 6 go wrong?<br>
&gt;<br>
&gt; Any help would be greatly appreciated!<br>
&gt;<br>
&gt; Below is the entire code of my test-site.<br>
&gt;<br>
&gt; Best regards,<br>
&gt; Martijn Senden.<br>
&gt;<br>
&gt; ____________________________<br>
&gt; __________&lt;/CODE&gt;__________<br>
&gt; ____________________________<br>
&gt;<br>
&gt; &lt;!DOCTYPE HTML PUBLIC &quot;-//W3C//DTD HTML 4.01//EN&quot;<br>
&gt;         &quot;<a href="http://www.w3.org/TR/html4/strict.dtd" target="_blank">http://www.w3.org/TR/html4/strict.dtd</a>&quot;&gt;<br>
&gt; &lt;html lang=&quot;NL&quot;&gt;<br>
&gt;  &lt;head&gt;<br>
&gt;<br>
&gt;    &lt;title&gt;minOpenLayers.aspx&lt;/title&gt;<br>
&gt;<br>
&gt;    &lt;script type=&quot;text/javascript&quot; src=&quot;javascript/OpenLayers.js&quot;&gt;&lt;/script&gt;<br>
&gt;<br>
&gt;     &lt;!--[if lt IE 8]&gt;<br>
&gt;       &lt;script type=&quot;text/javascript&quot;<br>
&gt; src=&quot;<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>&quot;&gt;&lt;/script&gt;<br>
&gt;     &lt;![endif]--&gt;<br>
&gt;<br>
&gt;    &lt;script type=&quot;text/javascript&quot;&gt;<br>
&gt;<br>
&gt;        var map, layer;<br>
&gt;<br>
&gt;        function init(){<br>
&gt;<br>
&gt;            map = new OpenLayers.Map( &#39;map&#39; );<br>
&gt;<br>
&gt;            layer = new OpenLayers.Layer.WMS( &quot;OpenLayers WMS&quot;,<br>
&gt; &quot;<a href="http://labs.metacarta.com/wms/vmap0" target="_blank">http://labs.metacarta.com/wms/vmap0</a>&quot;, {layers: &#39;basic&#39;} );<br>
&gt;<br>
&gt;            map.addLayer(layer);<br>
&gt;<br>
&gt;            map.zoomToExtent(new<br>
&gt; OpenLayers.Bounds(3.27392578125,50.69471783819287,7.294921875,53.67068019347264));<br>
&gt;        }<br>
&gt;    &lt;/script&gt;<br>
&gt;<br>
&gt;    &lt;style type=&quot;text/css&quot;&gt;<br>
&gt;<br>
&gt;<br>
&gt;<br>
&gt;            #map<br>
&gt;<br>
&gt;            {<br>
&gt;<br>
&gt;                background-color: Red;<br>
&gt;<br>
&gt;                position: absolute;<br>
&gt;<br>
&gt;             width: 100%;<br>
&gt;<br>
&gt;                height: 100%;<br>
&gt;<br>
&gt;            }<br>
&gt;<br>
&gt;<br>
&gt;<br>
&gt;            #mapWrapper {<br>
&gt;<br>
&gt;             position: absolute;<br>
&gt;<br>
&gt;             background-color: Blue;<br>
&gt;<br>
&gt;             top: 76px;<br>
&gt;<br>
&gt;             bottom: 0px;<br>
&gt;<br>
&gt;             left: 0px;<br>
&gt;<br>
&gt;             right: 0px;<br>
&gt;<br>
&gt;            }<br>
&gt;<br>
&gt;        &lt;/style&gt;<br>
&gt;<br>
&gt;<br>
&gt;<br>
&gt;  &lt;/head&gt;<br>
&gt;<br>
&gt;<br>
&gt;<br>
&gt;  &lt;body onload=&quot;init()&quot;&gt;<br>
&gt;<br>
&gt;    &lt;div id=&quot;mapWrapper&quot;&gt;&lt;div id=&quot;map&quot; class=&quot;smallmap&quot;&gt;&lt;/div&gt;&lt;/div&gt;<br>
&gt;<br>
&gt;  &lt;/body&gt;<br>
&gt;<br>
&gt; &lt;/html&gt;<br>
&gt; ____________________________<br>
&gt; __________&lt;/CODE&gt;__________<br>
&gt; ____________________________<br>
&gt;<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>