eands

Setting opacity in esri.layers.FeatureLayer makes info window not function

Discussion created by eands on Jan 11, 2011
I have set an info window to pop up when a user clicks on a watershed.  The info window includes a web link to download a pdf.  When I add an opacity level of .5 to the code, the info window only displays "undefined" when clicked.  Any ideas on what might be wrong with my code?

var featureLayer = new esri.layers.FeatureLayer("http://184.73.191.150/ArcGIS/rest/services/WS_Assessment/MapServer/1", {"opacity":0.5}, {
          mode: esri.layers.FeatureLayer.MODE_ONDEMAND,
          outFields: ["*"]
        });

        dojo.connect(featureLayer, 'onClick', function(evt) {
    var g = evt.graphic
   
          //populate the info window
          map.infoWindow.setTitle(g.attributes.Name);
    map.infoWindow.setContent("</b><br /><a target='_blank' href=http://www.esenvironmental.com/" + (g.attributes.ReportNew1) + ">Download Report</a>");
          map.infoWindow.show(evt.screenPoint, map.getInfoWindowAnchor(evt.screenPoint));
        });


        map.infoWindow.resize(200, 100);
        map.addLayer(featureLayer);

Outcomes