Hello, I have a basic IndentifyTask function that queries a layer. I'd like to create an alert that executes when the Identify has timed out. Right now it looks like this:
identifyTask.requestTimeout = 10;
identifyTask.execute(identifyParams, new AsyncResponder(myResultFunction, myFaultFunction, clickGraphic));
From what I understand, this means that if the identify runs longer than 10 seconds without completing, it's considered timed out. My users sometimes identify an area of the map that doesn't contain any layers and the identify just keeps going, and going, and going. I'd like to display an alert that says something like, "Nothing found" once the identify has reached 10 seconds and times out. How would I add an eventListener to fire off an alert once the requestTimeout time has been reached?Thanks for your help,Jason