Author: [EMAIL PROTECTED]
Date: Thu Oct 9 07:55:57 2008
New Revision: 3728
Modified:
trunk/user/src/com/google/gwt/user/client/impl/HTTPRequestImplIE6.java
Log:
For IE7, we should be instantiating an XHR with the native XMLHttpRequest
object. On IE6, try specifying which version you want first, then falling
back
to "Microsoft.XMLHTTP". This seems to work around the "do a POST when you
asked
for a GET" bug on some IE6 installs.
patch by: ajr
review by: jgw
Modified:
trunk/user/src/com/google/gwt/user/client/impl/HTTPRequestImplIE6.java
==============================================================================
--- trunk/user/src/com/google/gwt/user/client/impl/HTTPRequestImplIE6.java
(original)
+++ trunk/user/src/com/google/gwt/user/client/impl/HTTPRequestImplIE6.java
Thu Oct 9 07:55:57 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
-~----------~----~----~----~------~----~------~--~---