1.0.0 • Published 11 years ago
xhr-send v1.0.0
xhr-send
A cross-browser implementation for sending data over the supplied XHR connection.
Installation
npm install --save xhr-sendUsage
The module requires 3 arguments:
xhrThe reference to your constructedXMLHTTPRequestinstance.dataThe data that needs to be send.fnCompletion callback that receives the error as first argument.
var send = require('xhr-send');
send(xhr, 'data', function (err) {
if (err) return console.error('failed to send because of reasons', err);
console.log('send without any isseus.');
});License
MIT
1.0.0
11 years ago