map.addLayers hangs and onLayersAddResult event does not fire reliably

Discussion created by bbarnell on Nov 12, 2012
Latest reply on Nov 12, 2012 by JGravois-esristaff
If the map service URL is spelled wrong, then map.addLayers hangs and the onLayersAddResult event does not fire.  It works fine if only the map service name part of the URL is spelled wrong, but if the path to it is wrong it hangs.  Also, if any part of the first map service URL (bottom most map service) is spelled wrong, it hangs.  Not sure if it makes a difference, but I'm using jQuery with the ESRI API.

Hangs: (if bottom most map service)

Works: (if NOT bottom most map service)