Using this code:
var pendingRequest = new Ajax.Request(myUrl, { method: \'post\', postBody: soapMsg, contentTyp
You can use XHR's abort.
The XHR-object is stored in pendingRequest.transport, so using
pendingRequest.transport.abort()
would cancel the request.