Hi, I get "operation aborted" message when I load a simple OL page in IE. Would anybody help please?
My simplified code is: <html> <head> <!-- Override the position of the toolbar to make it fit in a small map --> <link rel="stylesheet" href="http://trac.openlayers.org/browser/trunk/openlayers/theme/default/style.css" type="text/css" /> <style type="text/css"> body { margin: 0; } #map { width: 800px; height: 475px; border: 1px solid black; position: relative; } .olControlOverviewMapContainer { position: relative; } div.map_OpenLayers_Container { width: 600px; position: relative; } .olControlZoomPanel { top: 200px; left: 14px; position: relative; } .olControlPanPanel { position: relative; } div.olControlMousePosition { font-family: Verdana; color: red; } </style> <script type="text/javascript" src="/plugins/human-terrain/scripts/fgs-search.js"></script> <script src="http://www.openlayers.org/api/OpenLayers.js"></script> <script src="http://dev.virtualearth.net/mapcontrol/mapcontrol.ashx?v=6.1"></script> <script type="text/javascript"> var boundbox, map, newq; var lon = 5; var lat = 40; var zoom = 5; var initialbbox = "-40.429687,-26.824071,164.882813,48.5166043"; var initboundbox = ("2.802734,29.562988,7.197266,50.437012"); var extent = new OpenLayers.Bounds(-180, -90, 180, 90); function simpleLayer(divName){ var options = { restrictedExtent: extent } map = new OpenLayers.Map(divName, options); var wms = new OpenLayers.Layer.WMS( "OpenLayers WMS", "http://labs.metacarta.com/wms/vmap0", {layers: 'basic'} ); var ve = new OpenLayers.Layer.VirtualEarth( "VE"); map.addLayers([wms, ve]); map.setCenter(new OpenLayers.LonLat(lon, lat), zoom); //map.setCenter(extent, 1); map.addControl(new OpenLayers.Control.LayerSwitcher()); map.addControl(new OpenLayers.Control.MousePosition()); map.addControl(new OpenLayers.Control.Permalink()); map.addControl(new OpenLayers.Control.PanZoomBar()); map.addControl(new OpenLayers.Control.OverviewMap()); map.fractionalZoom = true; map.zoomTo(Math.round(map.zoom)); //alert('ln168. simpleLayer(). bbox: '+map.getExtent().toBBOX()); // return map; } function resetmap() { var pos=1; if (pos>=0) { boundbox = "2.802734,29.562988,7.197266,50.437012"; document.searchform.chk_fgs.checked = true; alert('ln 1150. before reset. Resetting to boundbox: '+boundbox); //map.zoomToExtent(new OpenLayers.Bounds(boundbox)); var mCenter = map.getCenter(); map.setCenter(mCenter); alert('ln1156. after reset. map.getExtent().toBBOX(): '+map.getExtent().toBBOX()); } else { if (!map.getCenter()) map.zoomToMaxExtent(); //alert('ln1165. INSIDE ELSE. After Initializing bounds. new bbox: '+map.getExtent().toBBOX()); } } </script> </head> <body> <form ACTION="" METHOD=POST name="searchform" id="searchform"> <input id="chk_fgs" type="checkbox" name="chk_fgs" /> <label for="chk_fgs">Restrict to a region Check this box if you'd like to a specified location as part of your search. You may be able to do so by shift-dragging a box to zoom to an arbitrary extent. </label><br> <input type="submit" id="jive-search-button-submit" value="Search" onclick="this.disabled=true;this.value='Searching...';this.form.submit();return false;"> <div id="map" style="width: 800px; height: 475px; border: 1px solid #E5E5E5;" /> <script type="text/javascript"> //virtualEarthMap("map"); simpleLayer("map"); </script> </form> <script type="text/javascript"> //HT alert("I'm in the bottom!"); //onload = resetmap(); </script> </body> </html> -- View this message in context: http://n2.nabble.com/IE-error---operation-aborted-tp3250690p3250690.html Sent from the OpenLayers Dev mailing list archive at Nabble.com. _______________________________________________ Dev mailing list Dev@openlayers.org http://openlayers.org/mailman/listinfo/dev