Ok, this is what I have done:
function postJSONDoc(url, postVars) { var req = getXMLHttpRequest(); req.open("POST", url, true); req.setRequestHeader("Content-type", "application/x-www-form-urlencoded"); var data = queryString(postVars); var d = sendXMLHttpRequest(req, data); // check if got a special reply from server var serverMsgCallback = function(result) { log(...) } d.addCallback(serverMsgCallback); return d.addCallback(evalJSONRequest); } function test() { var first = postJSONDoc('getFirst', {}); var snd = postJSONDoc('getSnd', {}); var list = new DeferredList([first, snd], false, false, true); list.addCallback(function (resultList) { if ( ! resultList[0][0] || ! resultList[1][0]) { ... } (The code is somewhat simplified) When I run the code I get an error: Permission denied to get property XMLHttpRequest.channel name = MochiKit.Async.GenericError fileName = MochiKit.js lineNumber = 849 stack = Error()@:0 ()@MochiKit.js:849 @MochiKit.js:876 repr = function () { if (this.message && this.message != this.name) { return this.name + "(" + m.repr(this.message) + ")"; } else { return this.name + "()"; } } toString = function () { return this[_30].apply(this, arguments); } --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "MochiKit" group. To post to this group, send email to mochikit@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/mochikit -~----------~----~----~----~------~----~------~--~---