Two thumbs up for deferred binding. I overwrote the HTTPRequestImplIE6
deferred binding with my own ActiveX version. Works great. I hope this
thread is useful to someone at some point.
<module>
...
<replace-with
class="org.company.gwt.example.client.HTTPRequestImplIEActiveX">
<when-type-is
class="com.google.gwt.user.client.impl.HTTPRequestImpl"/>
<any>
<when-property-is name="user.agent" value="ie6" />
<when-property-is name="user.agent" value="ie8" />
</any>
</replace-with>
</module>
public class HTTPRequestImplIEActiveX extends HTTPRequestImpl {
@Override
protected native JavaScriptObject doCreateXmlHTTPRequest() /*-{
try {
return new ActiveXObject('MSXML2.XMLHTTP.3.0');
} catch (e) {
return new ActiveXObject("Microsoft.XMLHTTP");
}
}-*/;
}
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"Google Web Toolkit" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/google-web-toolkit?hl=en
-~----------~----~----~----~------~----~------~--~---