AJAX Object
This function returns an HTTP Request object that is backward compatible though IE 6. There are many like it, but this one is mine.
- Input:
- None
- Output:
- XML http object
function X$() {
if (window.XMLHttpRequest) return new XMLHttpRequest();
try {return new ActiveXObject("Microsoft.XMLHTTP")}
catch(e) {return new ActiveXObject("Msxml2.XMLHTTP")}
}
