function post_to_AtD(url, data, callback) {
	var xhr = (function() {
		try { return new XMLHttpRequest(); } catch(e) {}
		try { return new ActiveXObject( 'Msxml2.XMLHTTP' ); } catch (e) {}
		try { return new ActiveXObject( 'Microsoft.XMLHTTP' ); } catch (e) {}
	})();

	if (!xhr)
		return null;

	xhr.open('POST', url, true );

	xhr.onreadystatechange = function() {
		if ( xhr.readyState == 4 )
			callback( xhr.responseXML ); /* need to make this work with IE */
	};

	xhr.setRequestHeader("Content-type", "application/x-www-form-urlencoded");
	//These cause an error 
	//http://stackoverflow.com/questions/7210507/ajax-post-error-refused-to-set-unsafe-header-connection
	//xhr.setRequestHeader("Content-length", data.length);
	//xhr.setRequestHeader("Connection", "close");
	xhr.send(data);
}
/* CKEditor's AJAX mechanism doesn't give us a way to post content, we get to make our own... */
CKEditor's AJAX mechanism doesn't give us a way to post content, we get to make our own
CKEditor ' s AJAX mechanism doesn ' t give us a way to post content we get to make our own
function post_to_AtD(url, data, callback) {
	var xhr = (function() {
		try { return new XMLHttpRequest(); } catch(e) {}
		try { return new ActiveXObject( 'Msxml2.XMLHTTP' ); } catch (e) {}
		try { return new ActiveXObject( 'Microsoft.XMLHTTP' ); } catch (e) {}
	})();
	if (!xhr)
		return null;
	xhr.open('POST', url, true );
	xhr.onreadystatechange = function() {
		if ( xhr.readyState == 4 )
			callback( xhr.responseXML ); 
	};
	xhr.setRequestHeader("Content-type", "application/x-www-form-urlencoded");
	xhr.send(data);
}
function post_to_AtD ( url , data , callback ) { var xhr = ( function ( ) { try { return new XMLHttpRequest ( ) ; } catch ( e ) { } try { return new ActiveXObject ( 'Msxml2.XMLHTTP' ) ; } catch ( e ) { } try { return new ActiveXObject ( 'Microsoft.XMLHTTP' ) ; } catch ( e ) { } } ) ( ) ; if ( ! xhr ) return null ; xhr . open ( 'POST' , url , true ) ; xhr . onreadystatechange = function ( ) { if ( xhr . readyState == 4 ) callback ( xhr . responseXML ) ; } ; xhr . setRequestHeader ( "Content-type" , "application/x-www-form-urlencoded" ) ; xhr . send ( data ) ; }
CKEditor's AJAX mechanism doesn't give us a way to post content, we get to make our own...
CKEditor ' s AJAX mechanism doesn ' t give us a way to post content we get to make our own ...
/* need to make this work with IE */ //These cause an error  //http://stackoverflow.com/questions/7210507/ajax-post-error-refused-to-set-unsafe-header-connection //xhr.setRequestHeader("Content-length", data.length); //xhr.setRequestHeader("Connection", "close");