send Method
Transmits a data string to the server for processing.
Syntax
object.send( [varBody])
Parameters
varBody Optional. Receives a String containing the data to transmit to the server. If omitted, the behavior is identical to that of sending an empty string ( "" ).
Return Value
No return value.
Example
// 1. Create XDR object xdr = new XDomainRequest(); // 2. Open connection with server using POST method xdr.open("POST", "http://www.contoso.com/xdr.txt"); // 3. Send string data to server xdr.send("data to be processed");
Standards Information
There is no public standard that applies to this method.
Applies To
XDomainRequest, XDomainRequest Constructor
See Also