HttpClient.send

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 Callback function will be routed to a function with a single parameter that contains the raw HTTP response text. The ErrorHandler receives an CallbackException object

o.send(Url,PostData,Callback,ErrorCallback)

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

See also:

Class HttpClient

© West Wind Technologies, 1996-2016 • Updated: 10/03/08
Comment or report problem with topic