Select to view content in your preferred language

Entire application not working on Internet Explorer

911
4
11-10-2012 04:44 PM
SmaranHarihar
Deactivated User
Hey guys,

My application works fine on Firefox and Chrome but for some reason it is not working in Internet Explorer. Nothing appears except for the header on Internet Explorer. The version I am using is IE8.

This is my application.

Any idea what I need to correct?
0 Kudos
4 Replies
BillDaigle
Frequent Contributor
You have a trailing comma in your legend parameter on line 31 of tp_dock.html.  IE is more susceptible to trailing commas.
     map.addLayer(statesLyr);
        dojo.connect(map,'onLayersAddResult',function(results){
         //add the legend
          var legend = new esri.dijit.Legend({
            map:map,
            layerInfos:legendLayers,
          },"legendDiv");
      legend.startup();
        });


If you're using Aptana, try enabling JSLint validation.  It will help you track down a lot of simple issues like that.
0 Kudos
DavideLimosani
Frequent Contributor
Too se errors in IE8:
F12 --> open developer tools
click con Script and then console

In the console you will read the error indicated by bdaigle

Davide
0 Kudos
JeffJacobson
Frequent Contributor
If you're using Aptana, try enabling JSLint validation.  It will help you track down a lot of simple issues like that.


There is also a JSLint extension for Visual Studio available through NuGet.
0 Kudos
SmaranHarihar
Deactivated User
Too se errors in IE8:
F12 --> open developer tools
click con Script and then console

In the console you will read the error indicated by bdaigle

Davide


Thanks for the response guys.

Why does the IE give
Object doesn't support this property or method
for,
gpint = dojo.byId("gpTool");


and
ddMxd = dijit.byId('ddMxd');


??
0 Kudos