XPlatformHttp

Supports cross-platform XmlHttpRequest.

Methods

doPutPerforms an Ajax HTTP POST.

XPlatformHttp doPut method

Performs an Ajax HTTP POST.

JavaScript

xPlatformHttp.doPut(url,message,eventDelegate,synchronous)

Remarks

The url is the URL to post to. variableMap is an associative object containing key/value pairs to post. eventDelegate is a function to be called with events during the post.

If eventDelegate is null, the post is handled synchronously: The method returns the value of the responseText from the server.

If eventDelegate is non-null, the post is handled asynchronously: eventDelegate will be invoked with two arguments: the sender (this object), and eventArgs object. The eventArgs is a JavaScript object with the following properties:

PropertyDescription
eventIdEither ID_httpOK, ID_httpError, or ID_httpTimeout.
responseTextFor ID_httpOK, the response text from the server. For ID_httpError, the error message. For ID_httpTimeout, null.
xmlHttpRequestThe underlying XmlHttpRequest object that is performing the request.