|
Er, DOM 3 Load and Save isn't a "proposed specification". It was released as a Recommendation in April 2004 and has been implemented by multiple browsers already. It's never going to be as well-supported as XMLHttpRequest because, hey, Internet Explorer. that doesn't mean it isn't a stable, deployed specification though.
You can simplify the instantiation of the XMLHttpRequest object by simply including a little bit of generic Javascript before you use the native object method:
if (typeof XMLHttpRequest != "object") {
function XMLHttpRequest() {
return new ActiveXObject("Microsoft.XMLHTTP");
}
}
That way you can simply call new XMLHttpRequest() for Internet Explorer in the same way that you do for all the other browsers.
|