Hi folks,
according to this resource ( http://design-noir.de/webdev/JS/XMLHttpRequest-IE/
), the function to mimic the XMLHttpRequest for IE can be written like this:
/[EMAIL PROTECTED] @if (@_win32 && @_jscript_version >= 5) if
(!window.XMLHttpRequest)
function XMLHttpRequest() { return new ActiveXObject('Microsoft.XMLHTTP') }
@end @*/
jQuery's implementation looks like this:
if ( jQuery.browser.msie && typeof XMLHttpRequest == "undefined" )
XMLHttpRequest = function(){
return new ActiveXObject(
navigator.userAgent.indexOf("MSIE 5") >= 0 ?
"Microsoft.XMLHTTP" : "Msxml2.XMLHTTP"
);
};
I guess those conditional comments are incompatible with the compressor. But do
we really need the check for the userAgent?
If you found any other "small" issues, feel free to use this thread to discuss
them.
--
Jörn Zaefferer
http://bassistance.de
--
"Ein Herz für Kinder" - Ihre Spende hilft! Aktion: www.deutschlandsegelt.de
Unser Dankeschön: Ihr Name auf dem Segel der 1. deutschen America's Cup-Yacht!
_______________________________________________
jQuery mailing list
[email protected]
http://jquery.com/discuss/