rem: { dump("onStopRequest status = " + request.status.toString(16) + " " + errorMsg + "\n"); var ch; var calendarStringBundle = srGetStrBundle("chrome: var promptService = Components.classes["@mozilla.org/embedcomp/prompt-service;1"] .getService(Components.interfaces.nsIPromptService); try { ch = request.QueryInterface(Components.interfaces.nsIHttpChannel); dump(ch.requestSucceeded+"\n"); } catch(e) { } if (ch && !ch.requestSucceeded) { promptService.alert(null, calendarStringBundle.GetStringFromName('errorTitle'), calendarStringBundle.formatStringFromName('httpPutError',[ch.responseStatus, ch.responseStatusText],2)); } else if (!ch && !Components.isSuccessCode(request.status)) {  promptService.alert(null, calendarStringBundle.GetStringFromName('errorTitle'), calendarStringBundle.formatStringFromName('otherPutError',[request.status.toString(16)],1)); } }, 
add: { ctxt.wrappedJSObject.onStopUpload();  var channel; var calendarStringBundle = srGetStrBundle("chrome: var promptService = Components.classes["@mozilla.org/embedcomp/prompt-service;1"] .getService(Components.interfaces.nsIPromptService); try { channel = request.QueryInterface(Components.interfaces.nsIHttpChannel); dump(ch.requestSucceeded+"\n"); } catch(e) { } if (channel && !channel.requestSucceeded) { promptService.alert(null, calendarStringBundle.GetStringFromName('errorTitle'), calendarStringBundle.formatStringFromName('httpPutError',[channel.responseStatus, channel.responseStatusText],2)); } else if (!channel && !Components.isSuccessCode(request.status)) {  promptService.alert(null, calendarStringBundle.GetStringFromName('errorTitle'), calendarStringBundle.formatStringFromName('otherPutError',[request.status.toString(16)],1)); } }, 
context:   onStopRequest: function(request, ctxt, status, errorMsg)  {    dump("onStopRequest status = " + request.status.toString(16) + " " + errorMsg + "\n");    var ch;    var calendarStringBundle = srGetStrBundle("chrome://calendar/locale/calendar.properties");    var promptService = Components.classes["@mozilla.org/embedcomp/prompt-service;1"]                                  .getService(Components.interfaces.nsIPromptService);    try {      ch = request.QueryInterface(Components.interfaces.nsIHttpChannel);      dump(ch.requestSucceeded+"\n");    } catch(e) {    }    if (ch && !ch.requestSucceeded) {      promptService.alert(null, calendarStringBundle.GetStringFromName('errorTitle'),                          calendarStringBundle.formatStringFromName('httpPutError',[ch.responseStatus, ch.responseStatusText],2));    }    else if (!ch && !Components.isSuccessCode(request.status)) {      // XXX this should be made human-readable.      promptService.alert(null, calendarStringBundle.GetStringFromName('errorTitle'),                          calendarStringBundle.formatStringFromName('otherPutError',[request.status.toString(16)],1));    }  },
meta: 10234	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/10234/d1243bef373614cc6e4edd1488595100abcc1c49/publish.js/clean/calendar/resources/content/publish.js