Note that there are some explanatory texts on larger screens.

plurals
  1. POWhy doesn't my map work in IE8?
    text
    copied!<p>I have developed a WebApp that functions in Chrome, FireFox, and newer IE. Most of the functionality is not working in IE8. </p> <p>A user inputs a Zip Code and the map zooms to the Zip Code, displays the associated delivery routes, and fills a table with required data from the route. </p> <p>In IE8, the map doesn't zoom to the extent of the route, nor does the table get filled. Here is my code that should zoom to the features of the zip code:</p> <p>function displayResults(results, messages) { var featureset = results[0].value;</p> <pre><code>var simplePolySymbol = new esri.symbol.SimpleFillSymbol(); simplePolySymbol.setOutline(new esri.symbol.SimpleLineSymbol(esri.symbol.SimpleLineSymbol.STYLE_SOLID, new dojo.Color([0, 96, 170, .75]), 1)); dojo.forEach(featureset.features, function (feature) { feature.setSymbol(simplePolySymbol); resultsLayer.add(feature); }); myMap.addLayer(resultsLayer); myMap.Search.handleStats(results, messages); var extent = esri.graphicsExtent(featureset.features); myMap.setExtent(extent, true); } </code></pre> <p>And here is my code which is supposed to populate a table with the route data:</p> <pre><code>myMap.Search = { gpGetStats: new esri.tasks.Geoprocessor(gpURL), getRouteStats: function () { console.log(dojo.byId('resultsLayer').value); var params = { "ZIP_CRID": dojo.byId('resultsLayer').value }; resultsLayer.Search.gpGetStats.execute(params, resultsLayer.Search.handleStats); }, handleStats: function (results, messages) { console.log(results); var content = ''; content += '&lt;table&gt;'; content += '&lt;tr&gt;&lt;td&gt; ZIP CRID &lt;/td&gt;&lt;td&gt; Bus &lt;/td&gt;&lt;td&gt; Res &lt;/td&gt;&lt;td&gt; Tot &lt;/td&gt;&lt;td&gt; &amp;lt;200 &lt;/td&gt;&lt;td&gt; DS Key &lt;/td&gt;&lt;/tr&gt;'; dojo.forEach(results[0].value.features, function (crid, i) { console.log(crid.attributes.ZIP_CRID + ', '); content += '&lt;tr&gt;&lt;td&gt;' + crid.attributes.ZIP_CRID; content += '&lt;/td&gt;&lt;td&gt; ' + crid.attributes.BUS_CNT; content += '&lt;/td&gt;&lt;td&gt; ' + crid.attributes.RES_CNT; content += '&lt;/td&gt;&lt;td&gt; ' + crid.attributes.TOT_CNT; content += '&lt;/td&gt;&lt;td&gt; ' + crid.attributes.LT_200_IND; content += '&lt;/td&gt;&lt;td&gt; ' + crid.attributes.DS_KEY + '&lt;/td&gt;&lt;/tr&gt;'; }); content += '&lt;/table&gt;'; dojo.byId('details').innerHTML = content; }, </code></pre> <p>Im pretty stuck, can't figure out what to fix. Thanks for your help!</p>
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload