XHRDriver
XHRDrvier is used to make AJAX requests very easily.
Constructors
Constructor
Initializes a new instance of the XHRDriver class.
Methods
Abort
Aborts the request to the host.
AddRequestHeader
Adds a header to the request with the specified string name and string value arguments.
Complete
This method is executed when the request is complete. The specified object response argument contains relevant response properties such as: status, statusText, responseText, responseXML.
Error
This method is executed when there is an error making the request.
Get
Performs a GET request from the server with the specified string URL argument.
GetRequestHeader
Returns the value of a header with the specified string name argument.
GetResponseHeader
Returns the value of the response header from the specified string name argument.
Interactive
This method is executed when the request is in progress, and all response headers have been received.
IsSuccess
Returns true if the request returned a 200 successful request, false is returned otherwise.
Loaded
This method is executed when the request was successful, but no data has been received.
Loading
This method is executed when the request is in progress.
Post
Performs a POST request from the server with the specified string URL and string post data argument.
RemoveRequestHeader
Removes a header from this instance with the specified string name argument.
Properties
Headers
Stores headers for this instance.
IsAsync
Gets and sets the value used to determine whether asynchronous communication is used.
IsBusy
Stores the value used to determine whether the client is communicating with the server.
NoCache
Gets and sets the value used to turn on the prevention of caching.
Password
Stores the password used to authenticate with the host.
PostData
Stores the data used in a POST request.
Request
Stores the object used to interact with the server. In Mozilla based browsers the XMLHttpRequest is used. In Internet Explorer ActiveXObject is used.
URL
Stores the URL used in the request from the host.
Username
Stores the username used to authenticate with the host.
Notes
Please Note:
This object is only available in javascript.