Legend reply "No legend" urgent response needed

Discussion created by elikalinaki on Dec 5, 2011
Latest reply on Dec 6, 2011 by elikalinaki
I added some layers to my web map, am calling it using the arcgis javascript api 2.5 but for the legend i get "No legend" where the legend should be, can someone help me, almost throwing in the towel!
I want to be able to call a layer by its id..something like.if one clicks on this symbol, show this layer
thank you