Setting timeout for onError event

937
1
08-04-2011 09:56 AM
DavidBrown6
New Contributor
Hi,

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?

Thanks
0 Kudos
1 Reply
derekswingley1
Frequent Contributor
0 Kudos