Setting timeout for onError event

Discussion created by rocksolid311 on Aug 4, 2011
Latest reply on Aug 4, 2011 by DSwingley-esristaff

I am using the following the create a callback to an error handler function whenever a query is run on an invalid server.

dojo.connect(queryTask, "onError", errorHandler);

This works fine, the only problem is the default timeout must be set to a minute or so. I am using it in an application where the errorHandler function will present the user with an alert, and then move on to the next task. Due to the nature of JavaScript they can't proceed until they accept the alert, which pops a minute after their initial call has been made.

Any advice on how to adjust the timeout value?