Identity Manager and ArcGIS Server JS API Table of Contents (TOC) Widget

Discussion created by dmcgill on Mar 27, 2013
Latest reply on Sep 17, 2013 by robert.claypool
I have a little problem that I need a little help with.
I tested my code in IE v.9, Chrome v.25, and Firefox v.19, w/ Firebug v.1.11.2.

After Identity Manager Sign In, the TOC Widget does not display the images for the Layers in IE, but does show in Chrome and Firefox.


<!DOCTYPE html>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
    <meta http-equiv="X-UA-Compatible" content="IE=7,IE=9">
    <meta name="viewport" content="initial-scale=1, maximum-scale=1,user-scalable=no">
    <link rel="stylesheet" type="text/css" href="" />
    <link rel="stylesheet" type="text/css" href="" />
    <style type="text/css">
        html, body { height: 100%; width: 100%; margin: 0px; padding: 0px;
        body {
            overflow: hidden; font-family: Trebuchet; font-size: 10pt;
        #mainWindow { height: 100%; width: 100%; margin: 0px; padding: 0px;
        #header { height: 10%; margin: 1px; border: solid 1px #0033FF;
        #subheader { text-align: left;
        #leftPane { margin: 1px; border: solid 1px #0033FF;
        #map { margin: 1px; border: solid 1px #0033FF;
        #rightPane { margin: 1px; border: solid 1px #0033FF;           
        #footer { height: 20%; border: solid 1px #0033FF;
        #scaleDiv .agsjsTOCOutOfScale { display: none;
    <script type="text/javascript">
        var dojoConfig = {
            parseOnLoad: true,
            packages: [{
                "name": "agsjs",
                "location": location.pathname.replace(/\/[^/]+$/, "") + '/agsjs/build/agsjs'
                //"location": '' // for xdomain load
    <script type="text/javascript" src=""></script>
    <script type="text/javascript">
        dojo.require("dijit.dijit"); // optimize: load dijit layer
        dojo.require("dojo.fx");// needed if use jsapi 3.0
        function init() {
            var initialExtent = new esri.geometry.Extent({ "xmin": -1.050630206915668E7, "ymin": 4756813.366129731, "xmax": -1.0493849868022233E7, "ymax": 4766203.981076501, "spatialReference": { "wkid": 102100 } });
            map = new esri.Map("map", { nav: false, extent: initialExtent, logo: false, showAttribution: false });
            var baseMapLayer = new esri.layers.ArcGISTiledMapServiceLayer("");
            var dynmap1 = new esri.layers.ArcGISDynamicMapServiceLayer("");
            dojo.connect(map, 'onLayersAddResult', function (results) {
                var toc = new agsjs.dijit.TOC({
                    map: map,
                    layerInfos: [{
                        layer: dynmap1,
                        title: "ClayCoPWSD4",
                        slider: true
                }, 'tocDiv');
                var legend = new esri.dijit.Legend({
                    map: map,
                    layerInfos: [{ layer: dynmap1, title: "" }]
                }, "legendDiv");
<body class="soria">
    <div id="mainWindow" data-dojo-type="dijit.layout.BorderContainer" data-dojo-props="design: 'headline'">        
        <div id="header" data-dojo-type="dijit.layout.ContentPane" data-dojo-props="region:'top'"> This HTML file is located in the C:\inetpub\wwwroot\ <p> The "agsjs" folder, for Table of Contents, was copied into C:\inetpub\wwwroot\</p> This is the link to TOC:                
            <div id="subheader"> Identity Manager and ArcGIS Server JS API Table of Contents (TOC) Widget works in Firefox and Chrome, but Internet Explorer does not display the images for Layers after Identity Manager Sign In popup window. </div>
        <div id="leftPane" data-dojo-type="dijit.layout.ContentPane" data-dojo-props="region:'left'" style="width: 19%">
            <div id="legendDiv"></div>
        <div id="map" data-dojo-type="dijit.layout.ContentPane" data-dojo-props="region:'center'" >            
        <div id="rightPane" data-dojo-type="dijit.layout.ContentPane" data-dojo-props="region:'right'" style="width: 19%">
            <div id="tocDiv"></div>
        <div id="footer" data-dojo-type="dijit.layout.ContentPane" data-dojo-props="region:'bottom'" style="height: 20%"> Search results will appear here. </div>