Documentation for: ASP.NET Ajax Version 1.0

This documentation is for a previous version. For the current released version, see the ASP.NET Ajax documentation on MSDN.

 

 

 

 

 

 

 

Sys.Net.XmlHttpExecutor responseAvailable Property

Returns a value indicating whether the network request returned without being aborted or timing out.

note

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.

Syntax

var rAvailable = MyExecutor.get_responseAvailable();

Return Value

true if the network request returned without being aborted or timing out; otherwise, false.

Remarks

The responseAvailable property returns true only if the network request sent to the underlying browser's XMLHTTP object returned successfully without being stopped or timing out. Otherwise, this method returns false.

Example

The following example shows how to use the responseAvailable property. This code is part of a complete example found in the Sys.Net.XmlHttpExecutor class overview.

JavaScript

if(executor.get_responseAvailable())