GeometryService call not working in IE8

Discussion created by sarahgolding on Feb 28, 2013
Latest reply on Feb 28, 2013 by disuse
In both Firefox and Chrome the following code uses a geometry service to label states on a map as intended, but in IE8 nothing seems to happen. Any idea why this isn't working in IE8?

 function addStateLabels(p_StateLayer, p_LabelLayer){
  var t_GeometryArray = new Array();
  for (var i=0; i<; i++) {
   t_GeometryArray[i] =[i].geometry;
  m_GeometryService.simplify(t_GeometryArray ,function (p_Geometries) { 
   m_GeometryService.labelPoints(p_Geometries, function(p_LabelPoints) {
    var font = new esri.symbol.Font("15px", esri.symbol.Font.STYLE_NORMAL, esri.symbol.Font.VARIANT_NORMAL, esri.symbol.Font.WEIGHT_BOLDER);
     for (var i=0; i<p_LabelPoints.length; i++) {
       var t_TextSymbol = new esri.symbol.TextSymbol([i].attributes.STATE_ABBR, font, new dojo.Color.fromHex("#FFFFFF"));
       p_LabelLayer.add(new esri.Graphic(p_LabelPoints[i],t_TextSymbol));