hbaffoe

I'm getting this error when I try to run my application

Discussion created by hbaffoe on Nov 16, 2012
Can somebody give me some assistance
This is the error I get when I try to run the follow piece of code:

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
<html>
  <head>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
    <meta http-equiv="X-UA-Compatible" content="IE=7,IE=9" />
    <title>
      Create web map from id
    </title>
    <link rel="stylesheet" type="text/css" href="http://serverapi.arcgisonline.com/jsapi/arcgis/3.2/js/dojo/dijit/themes/claro/claro.css">
    <link rel="stylesheet" type="text/css" href="http://serverapi.arcgisonline.com/jsapi/arcgis/3.2/js/esri/css/esri.css" />
    <link rel="stylesheet" type="text/css" href="css/layout.css"/>

    <script type="text/javascript">
      var dojoConfig = {
        parseOnLoad: true
      };
    </script>
   
    <script type="text/javascript" src="http://serverapi.arcgisonline.com/jsapi/arcgis/?v=3.2">
    </script>
    <script type="text/javascript">
      dojo.require("dijit.dijit");
      dojo.require("dijit.layout.BorderContainer");
      dojo.require("dijit.layout.ContentPane");
      dojo.require("esri.map");
      dojo.require("esri.arcgis.utils");
      dojo.require("esri.dijit.Legend");
      dojo.require("esri.dijit.Scalebar");

      var map;

      function init() {
       
        var mapDeferred = esri.arcgis.utils.createMap("25a233d5ff194068ad373dc0db4520b7", "map", {
          mapOptions: {
            slider: true,
            nav:false
          }
        });
        mapDeferred.then(function(response) {
         
          dojo.byId("title").innerHTML = response.itemInfo.item.title;
          dojo.byId("subtitle").innerHTML = response.itemInfo.item.snippet;
         
          map = response.map;
         
          //resize the map when the browser resizes
          dojo.connect(dijit.byId('map'), 'resize', map,map.resize);
          //add the legend
          var layers = response.itemInfo.itemData.operationalLayers;  
          if(map.loaded){
            initMap(layers);
          }
          else{
          dojo.connect(map,"onLoad",function(){
            initMap(layers);
          });
        }
        },function(error){
          console.log("Map creation failed: ", dojo.toJson(error));       
        });

      }
     
      function initMap(layers){


       //add a scalebar
        var scalebar = new esri.dijit.Scalebar({
          map:map,
          scalebarUnit: 'english'
        });
        //add a legend
        var layerInfo = dojo.map(layers, function(layer,index){
          return {layer:layer.layerObject,title:layer.title};
        });
        if(layerInfo.length > 0){
          var legendDijit = new esri.dijit.Legend({
            map:map,
            layerInfos:layerInfo
          },"legend");

          legendDijit.startup();
        }
        else{
          dojo.byId('legend').innerHTML = 'No operational layers';
        }

      }

      //show map on load
      dojo.addOnLoad(init);

    </script>

  </head>



  <body class="claro">
    <div id="mainWindow" data-dojo-type="dijit.layout.BorderContainer" data-dojo-props="design:'headline'" style="width:100%; height:100%;">
      <div id="header" class="shadow roundedCorners" data-dojo-type="dijit.layout.ContentPane" data-dojo-props="region:'top'">
        <div id="title"></div>
        <div id="subtitle" > </div>
      </div>
      <div id="map" class="roundedCorners shadow" data-dojo-type="dijit.layout.ContentPane" data-dojo-props="region:'center'"></div>
      <div id="rightPane" class="roundedCorners shadow" data-dojo-type="dijit.layout.ContentPane" data-dojo-props="region:'right'" >
        <div id="legend"></div>
      </div>
    </div>
  </body>



</html>

Error message

Firebug's log limit has been reached. 0 entries not shown.  Preferences 
Error: [Exception... "Component returned failure code: 0x80004005 (NS_ERROR_FAILURE) [nsIXMLHttpRequest.send]" nsresult: "0x80004005 (NS_ERROR_FAILURE)" location: "JS frame :: http://serverapi.arcgisonline.com/jsapi/arcgis/?v=3.2 :: anonymous :: line 15" data: no]
[Break On This Error] (no source for )
(line 0)
<System>
GET http://serverapi.arcgisonline.com/jsapi/arcgis/3.2/js/dojo/dojox/gfx/svg.js
GET http://serverapi.arcgisonline.com/jsapi/arcgis/3.2/js/dojo/dojox/gfx/svg.js

206 Partial Content
  450ms
arcgis?v=3.2 (line 15)
GET http://serverapi.arcgisonline.com/jsapi/arcgis/3.2/js/dojo/dijit/dijit.js
GET http://serverapi.arcgisonline.com/jsapi/arcgis/3.2/js/dojo/dijit/dijit.js

206 Partial Content
  501ms
arcgis?v=3.2 (line 15)
uncaught exception: [Exception... "Component returned failure code: 0x80004005 (NS_ERROR_FAILURE) [nsIXMLHttpRequest.send]" nsresult: "0x80004005 (NS_ERROR_FAILURE)" location: "JS frame :: http://serverapi.arcgisonline.com/jsapi/arcgis/?v=3.2 :: anonymous :: line 15" data: no]
[Break On This Error] (no source for )
uncaught exception: [Exception... "Component returned failure code: 0x80004005 (NS_ERROR_FAILURE) [nsIXMLHttpRequest.send]" nsresult: "0x80004005 (NS_ERROR_FAILURE)" location: "JS frame :: http://serverapi.arcgisonline.com/jsapi/arcgis/?v=3.2 :: anonymous :: line 15" data: no]

Outcomes