Hi,Thank you very much for your reply. I had corrected the code by adding the layer id and i was able to verify the featurelayer has been loaded using an onLoad event. Would the feature layer be visible,like the normal layer? var featureLayer = new esri.layers.FeatureLayer("http://karthikpc:8399/arcgis/rest/services/Carriage_Mercantor/FeatureServer/0", {
mode: esri.layers.FeatureLayer.MODE_ONDEMAND,
infoTemplate: infoTemplate,
outFields: ["*"]
});
When i added an onclick event with the feature Layer it didnt seem to work. My final goal would be given a set of roads on the network , I should be able to highlight them, I thought using the feature Layer would prove useful, correct me if i was wrong.