Question:
I have seen answers to ReadTimeout, but I want an overall timeout and the answers I saw all required event callbacks. Can you provide an example of using an event callback in JScript? (We are in a WSH environment, not the browser).
I don't know the syntax of what would be required for a callback from the ActiveX w/ JScript.
However, a better choice might be to call the Async version of the method, and then wait a max time for the Chilkat.Task to complete. If it hasn't completed in that time, you can cancel the task (by calling Task.Cancel).
Here is an example in VBScript:
VBScript: Cancel Async Task if not Completed after a Max Time