context: HTMLArea._postback = function(url, data, handler, addParams, charset) {	if (typeof(charset) == "undefined") var charset = "utf-8";	var req = null;	if (window.XMLHttpRequest) req = new XMLHttpRequest();		else if (window.ActiveXObject) {			var success = false;			for (var k = 0; k < HTMLArea.MSXML_XMLHTTP_PROGIDS.length && !success; k++) {				try {					req = new ActiveXObject(HTMLArea.MSXML_XMLHTTP_PROGIDS[k]);					success = true;				} catch (e) { }			}		}		if(req) {		var content = '';		for (var i in data) {			content += (content.length ? '&' : '') + i + '=' + encodeURIComponent(data[i]);		}		content += (content.length ? '&' : '') + 'charset=' + charset;		if (typeof(addParams) != "undefined") content += addParams;		if (url.substring(0,1) == '/') {			var postUrl = _typo3_host_url + url; 		} else {			var postUrl = _typo3_host_url + _editor_url + url;		}				function callBack() {			if(req.readyState == 4) {				if (req.status == 200) {					if (typeof(handler) == 'function') handler(req.responseText, req);					HTMLArea._appendToLog("[HTMLArea::_postback]: Server response: " + req.responseText);				} else {					HTMLArea._appendToLog("ERROR [HTMLArea::_postback]: Unable to post " + postUrl + " . Server reported " + req.statusText);				}			}		}		req.onreadystatechange = callBack;		function sendRequest() {			HTMLArea._appendToLog("[HTMLArea::_postback]: Request: " + content);			req.send(content);		}				req.open('POST', postUrl, true);		req.setRequestHeader('Content-Type', 'application/x-www-form-urlencoded; charset=UTF-8');		window.setTimeout(sendRequest, 500);	}};
meta: 9100	/local1/tlutelli/issta_data/temp/all_js/javascript/2007_temp/2007/9100/443e58fd2f08b328380d1484dcf63e8bd3e13d5e/htmlarea.js/buggy/typo3/sysext/rtehtmlarea/htmlarea/htmlarea.js