Actually it works now. It did not work before due to some misconfiguration in IIS.Here we go the code that I put to work for me:function init() { // called with dojo.onLoad
// `map` is the main map with basemap both already set....
dojo.connect(map, "onLoad", function() {
template = new esri.InfoTemplate();
template.setTitle("mytitle");
template.setContent(getTextContent);
var HGLayerURL2 = [myfeaturelayer's url];
// note that below i don't declare the HGLayerMap - it is already declared outside this function
HGLayerMap = new esri.layers.FeatureLayer(HGLayerURL2, {
mode: esri.layers.FeatureLayer.MODE_ONDEMAND,
infoTemplate:template,
outFields: [list of my fields hrere...]
});
map.addLayer(HGLayerMap);
dojo.connect(map,"onUpdateStart",function(){
// some of my code comes here...
fixIELayers(); // the fixer...
});
// some more code here.....
});
return true;
} // end of init()
dojo.addOnLoad(init);
// END INIT PART!
function fixIELayers(evt)
{
// IE FIX FOR IMAGES NOT SHOWING IN FEATURE LAYER!!!
if (dojo.isIE)
{
var currentLayer = HGLayerMap; //map.getLayer(map.layerIds);
if(currentLayer && currentLayer.renderer && currentLayer.renderer.infos)
{
for (var i=0; i<currentLayer.renderer.infos.length; i++)
{
var url1=currentLayer.renderer.infos.symbol.url;
var url2=esri.config.defaults.io.proxyUrl+'?';
if (url1.indexOf(url2) != -1)
continue;
var url3=url2+url1;
currentLayer.renderer.infos.symbol.url = url3;
}
}
}
}
That's all folks.I hope this helps someone...Cheers