[OpenLayers-Dev] IE error - operation aborted

mikani gina.m.dang at lmco.com
Mon Jul 13 10:27:29 EDT 2009


I get "operation aborted" message when I load a simple OL page in IE.
Would anybody help please?

My simplified code is:
		<!-- Override the position of the toolbar to make it fit in a small map
<link rel="stylesheet"
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;
                <script type="text/javascript"
	<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",
				                          {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;
				            //alert('ln168.  simpleLayer().  bbox: 
				           // 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:

		    	//map.zoomToExtent(new OpenLayers.Bounds(boundbox));
				var mCenter = map.getCenter();
		    	alert('ln1156.  after reset.  map.getExtent().toBBOX():

		    	if (!map.getCenter()) map.zoomToMaxExtent();
		    	//alert('ln1165.  INSIDE ELSE.  After Initializing bounds.  new bbox:

<form ACTION="" METHOD=POST name="searchform" id="searchform">
<input id="chk_fgs" type="checkbox" name="chk_fgs" />
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"

                                              	<div id="map" style="width:
800px; height: 475px; border: 1px solid #E5E5E5;" />

<script type="text/javascript">
alert("I'm in the bottom!");
//onload = resetmap();


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.

More information about the Dev mailing list