dist/bower_components/log4js/log4js/src/main/js/log4js.js
function() {
		log4jsLogger.trace("> AjaxAppender.getXmlHttpRequest");
		
		var httpRequest = false;

		try {		
			if (window.XMLHttpRequest) { // Mozilla, Safari, IE7...
					httpRequest = new XMLHttpRequest();
				if (httpRequest.overrideMimeType) {
					httpRequest.overrideMimeType(this.layout.getContentType());
				}
			} else if (window.ActiveXObject) { // IE
				try {
					httpRequest = new ActiveXObject("Msxml2.XMLHTTP");
				} catch (e) {
					httpRequest = new ActiveXObject("Microsoft.XMLHTTP");
				}
			}
		} catch (e) {
			httpRequest = false;
		}
		
		if (!httpRequest) {
			log4jsLogger.fatal("Unfortunatelly your browser does not support AjaxAppender for log4js!");
		}
		
		log4jsLogger.trace("< AjaxAppender.getXmlHttpRequest");
		return httpRequest;
	}
function() {
		log4jsLogger.trace("> AjaxAppender.getXmlHttpRequest");
		
		var httpRequest = false;

		try {		
			if (window.XMLHttpRequest) { // Mozilla, Safari, IE7...
					httpRequest = new XMLHttpRequest();
				if (httpRequest.overrideMimeType) {
					httpRequest.overrideMimeType(this.layout.getContentType());
				}
			} else if (window.ActiveXObject) { // IE
				try {
					httpRequest = new ActiveXObject("Msxml2.XMLHTTP");
				} catch (e) {
					httpRequest = new ActiveXObject("Microsoft.XMLHTTP");
				}
			}
		} catch (e) {
			httpRequest = false;
		}
		
		if (!httpRequest) {
			log4jsLogger.fatal("Unfortunatelly your browser does not support AjaxAppender for log4js!");
		}
		
		log4jsLogger.trace("< AjaxAppender.getXmlHttpRequest");
		return httpRequest;
	}
function ( ) { log4jsLogger . trace ( "> AjaxAppender.getXmlHttpRequest" ) ; var httpRequest = false ; try { if ( window . XMLHttpRequest ) { // Mozilla, Safari, IE7... httpRequest = new XMLHttpRequest ( ) ; if ( httpRequest . overrideMimeType ) { httpRequest . overrideMimeType ( this . layout . getContentType ( ) ) ; } } else if ( window . ActiveXObject ) { // IE try { httpRequest = new ActiveXObject ( "Msxml2.XMLHTTP" ) ; } catch ( e ) { httpRequest = new ActiveXObject ( "Microsoft.XMLHTTP" ) ; } } } catch ( e ) { httpRequest = false ; } if ( ! httpRequest ) { log4jsLogger . fatal ( "Unfortunatelly your browser does not support AjaxAppender for log4js!" ) ; } log4jsLogger . trace ( "< AjaxAppender.getXmlHttpRequest" ) ; return httpRequest ; }
Get the XMLHttpRequest object independent of browser.
@private
Get the XMLHttpRequest object independent of browser .