XPlatformHttp
Supports cross-platform XmlHttpRequest.
- Object
- XPlatformHttp
Methods
doPut | Performs 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:
Property | Description |
eventId | Either ID_httpOK, ID_httpError, or ID_httpTimeout. |
responseText | For ID_httpOK, the response text from the server. For ID_httpError, the error message. For ID_httpTimeout, null. |
xmlHttpRequest | The underlying XmlHttpRequest object that is performing the request. |