dojo.xhrPost({ url: "/moxie/" + encodeURIComponent(key), content: { "content": value }, error: function(err){ //console.debug("error, err="+err); var msg = "Unable to save file " + key + ": " + err; if(!dojox.off.sync.actions.isReplaying){ alert(msg); }else{ dojox.off.sync.actions.haltReplay(msg); } }, load: dojo.hitch(this, function(data){ //console.debug("load, data="+data); this._printStatus("Saved '" + key + "'"); // add to our list of available keys this._addKey(key); if(!dojox.off.sync.actions.isReplaying){ // update the list of available keys this._printAvailableKeys(); }else{ dojox.off.sync.actions.continueReplay(); } }) });