var self = this;
// add 'cachebust' to the URL to make sure we get a fresh// copy that is not returned from either the browser's cache// or the local offline proxy's cachevar url = "/moxie/" + encodeURIComponent(key)
+ "?cachebust=" + new Date().getTime();
var bindArgs = {
url: url,
handleAs: "text",
error: function(err){//console.debug("error, err="+err);
err = err.message||err;
alert("The file " + key + " is not available: "
+ err);
},
load: function(data){
self._updateEditorContents(data);
// print out that we are done
self._printStatus("Loaded '" + key + "'");
}};
// dispatch the request
dojo.xhrGet(bindArgs);