﻿jQuery(document).ready(function() {
	jQuery.flXHRproxy.registerOptions("http://www.numenore.com/test/");
	
	$("#activate_flxhr").click(function() {
		doit();
		return false;
	});
});

function doit() {
		jQuery.ajaxSetup({transport:'flXHRproxy',error:handleError});
		jQuery.post(
					"http://www.numenore.com/test/cross.php",
					"myName=moshe",
					handleLoading,
					"text/plain"
		);
	}

 
function handleLoading(data,status,XHRobj) {
	if (status == 'success') {
		alert(data);
	}
}
 
function handleError(XHRobj,errtype,errObj) {
	alert("Error: "+errObj.number
		+"\nType: "+errObj.name
		+"\nDescription: "+errObj.description
		+"\nSource Object Id: "+errObj.srcElement.instanceId
	);
}
