Author: [EMAIL PROTECTED]
Date: Thu Oct  9 12:11:24 2008
New Revision: 3731

Modified:
     
releases/1.5/user/src/com/google/gwt/user/client/impl/HTTPRequestImplIE6.java

Log:
Backporting the fix at r3728 for the 1.5 release branch.

patch by: ajr
review by: jgw


Modified:  
releases/1.5/user/src/com/google/gwt/user/client/impl/HTTPRequestImplIE6.java
==============================================================================
---  
releases/1.5/user/src/com/google/gwt/user/client/impl/HTTPRequestImplIE6.java   
 
(original)
+++  
releases/1.5/user/src/com/google/gwt/user/client/impl/HTTPRequestImplIE6.java   
 
Thu Oct  9 12:11:24 2008
@@ -24,6 +24,14 @@

    @Override
    protected native JavaScriptObject doCreateXmlHTTPRequest() /*-{
-    return new ActiveXObject("Microsoft.XMLHTTP");
+    if ($wnd.XMLHttpRequest) {
+      return new XMLHttpRequest();
+    } else {
+      try {
+        return new ActiveXObject('MSXML2.XMLHTTP.3.0');
+      } catch (e) {
+        return new ActiveXObject("Microsoft.XMLHTTP");
+      }
+    }
    }-*/;
  }

--~--~---------~--~----~------------~-------~--~----~
http://groups.google.com/group/Google-Web-Toolkit-Contributors
-~----------~----~----~----~------~----~------~--~---

Reply via email to