Hello,I was making a map with popup function however I'm stuck or have no idea using
var featureLayer = new esri.layers.FeatureLayer("http://localhost/ArcGIS/rest/services/TAVP/MapServer",{
opacity:0.5,
mode: esri.layers.FeatureLayer.MODE_SELECTION,
outFields: ["*"],
infoTemplate:template
});
it works when I change new esri.layers.FeatureLayer to new esri.layers.ArcGISDynamicMapServiceLayerbut then popup will not work.Can anyone help me out with this?URL working fine and map as well