rem:  this.httpRequest.open("POST", this.loggingUrl, true); this.httpRequest.setRequestHeader("Content-type", "application/x-www-form-urlencoded");  
add:  var httpRequest = this.getXmlHttpRequest(); httpRequest.onreadystatechange = function() { log4jsLogger.trace("> AjaxAppender.onReadyStateChanged");  if (httpRequest.readyState != 4) { log4jsLogger.trace("< AjaxAppender.onReadyStateChanged: readyState != 4"); return; }  var success = ((typeof httpRequest.status === "undefined") || httpRequest.status === 0 || (httpRequest.status >= 200 && httpRequest.status < 300));  if (success) { log4jsLogger.trace("  AjaxAppender.onReadyStateChanged: success");   this.isInProgress = false;  } else { var msg = "  AjaxAppender.onReadyStateChanged: XMLHttpRequest request to URL " + this.loggingUrl + " returned status code " + httpRequest.status; log4jsLogger.trace(msg); }  log4jsLogger.trace("< AjaxAppender.onReadyStateChanged: readyState == 4"); };  httpRequest.open("POST", this.loggingUrl, true);  httpRequest.setRequestHeader("Content-type", "application/x-www-form-urlencoded");  
context: 	send: function() {		var content = this.layout.getHeader();				for(var i = 0; i < this.loggingEventMap.length(); i++) {			content +=  this.layout.format(this.loggingEventMap.get(i));		} 		//clean the list and reset the threshold		this.loggingEventMap = new Log4js.ArrayList();		this.currentThreshold = 0;				content += this.layout.getFooter();			this.httpRequest.open("POST", this.loggingUrl, true);		this.httpRequest.setRequestHeader("Content-type", "application/x-www-form-urlencoded");		// set the request headers. REFERER will be the top-level		// URI which may differ from the location of the error if		// it occurs in an included .js file		this.httpRequest.setRequestHeader("REFERER", location.href); 		this.httpRequest.setRequestHeader("Content-length", content.length);		this.httpRequest.setRequestHeader("Connection", "close");		this.httpRequest.send(content);		this.currentThreshold = 0;	}
meta: 8932	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/8932/afe31b5fce5f19f92def0be8e9e7d55a105da20e/log4js.js/clean/trunk/src/js/log4js.js