r.url = r.target +'?'+ r.data;
r.postData = dojox.rpc._restMethods.sendData;
var def = dojo.rawXhrPost(r);
var postObj = dojox.rpc._restMethods.sendObj;
/* This is a possible HTTP-compliant way to determine the id of a posted object
def.addCallback(function(result) {
dojox._newId = def.ioArgs.xhr.getResponseHeader('Content-Location');
if (dojox._newId) {// we need some way to communicate the id of the newly created object
dojox.rpc._index[postObj._id = dojox._newId] = postObj;
}
return result;
});*/return def;