2

I'm getting this error "Error on domReady callback: TypeError: b is null" when including arcgis javascript api to my project.

     <head runat="server">
<title></title>

 <script type="text/javascript">
     var dojoConfig = {
         async: true,
         parseOnLoad: true,
     };
</script>
<script src="http://js.arcgis.com/3.11/"></script>
</head>
 <body>
<div id="layerContent" style="height:10%;width:100%;">
    <div id="map" style="height:10%;width:100%;">
    </div>
</div>
</body>

This script is in page called map.aspx and I request it using iframe like this

   <iframe src="map.aspx" />

I'm not sure what is the problem, any help?

  • is the code wrapped in the HTML tag? Also i noticed the comma after parseOnLoad which can cause issues in IE – Aamir Suleman Jan 21 '15 at 18:01
  • It is wrapped in HTML, the problem became when I added another javascript libraries, like bootstrap and others. – Omar Taha Jan 22 '15 at 7:22
  • Move all JS libraries below the Esri JS – Aamir Suleman Jan 22 '15 at 12:12

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.