mhadi11 Error

Discussion created by mhadi11 on Feb 22, 2011
Latest reply on Jun 13, 2012 by cminde7
I have added 2 feature layers in my map having mode as MODE_ONDEMAND and attached info window functions.
Every things works fine but after some time I start to get some errors as error
Error: undefined

and then a lot of following errors with just the numbers changed is undefined is undefined

There is no effect on functionality and everything works fine even with these errors.
I made sure if I have added dojo.require(""); but it still give me same errors.

What causes these errors? Can I ignore it? is there something I am missing?
Following is the code I used to add layers.
//Airports Layer
var featureLayer = new esri.layers.FeatureLayer("http://localhost/ArcGIS/rest/services/MyMap/MapServer/0",{
mode: esri.layers.FeatureLayer.MODE_ONDEMAND,
outFields: ["*"]

//Buildings Layer
var featureLayerBuildings = new esri.layers.FeatureLayer("http://localhost/ArcGIS/rest/services/MyMap/MapServer/1",{
mode: esri.layers.FeatureLayer.MODE_ONDEMAND,
outFields: ["*"]