Used to make an asynchronous HTTP call to the server and return the result into a callback function. This method provides error handling and any errors that occur are fired into the OnError handler.
The result of the callbacks are routed to either the callback handler parameters provided in the method, or to a returned jQuery Promise object or - if both are defined - both. The success handlers receive the raw HTTP response. The errr handler receives a CallbackException object
o.send(Url,PostData,Callback,ErrorCallback)
Return Value
jQuery Promise Object (.then(successHandler, errorHandler)
)
Parameters
Url
The URL to call
PostData
Any POST data to send to the server
Callback
The javascript function to call when the call completes
ErrorCallback
The javascript function to call when the call fails. If not specified the error is ignored
Overloads:
See also:
Class HttpClient© West Wind Technologies, 1996-2024 • Updated: 10/09/17
Comment or report problem with topic