Sys.Net.WebRequestExecutor responseAvailable Property
Gets a value indicating whether the request completed successfully.
To get or set property values for client API properties, you must call property accessor methods that are named with the get_ and set_ prefixes. For example, to get or set a value for a property such as cancel, you call the get_cancel or set_cancel methods.
var responseAvailable = MyExecutor.get_responseAvailable();
true if the request completed successfully; otherwise, false.
Successful completion usually means a well-formed response was received by the executor. If a response was received, the current instance of the Sys.Net.WebRequestExecutor class must set its state to completed. It must also raise the completed event of the associated request object.
The following example shows how to use the responseAvailable property by using the default Sys.Net.XMLHttpExecutor class.