Guest Roy A. Posted January 9, 2007 Share Posted January 9, 2007 Does anybody know if the AJAX Tutorial is testet on IE7 who also have implemented the XMLHttpRequest object? Link to comment Share on other sites More sharing options...
jesh Posted January 9, 2007 Share Posted January 9, 2007 I don't know the answer to that question. However, I would get the HttpRequest object differently than what is explained here: http://www.w3schools.com/ajax/ajax_xmlhttprequest.aspTo insure that the XMLHttpRequest is used before the ActiveX stuff, I'd try to get the XMLHttpRequest before any of the ActiveX stuff, like so: var XMLHttp = null;if(window.XMLHttpRequest){ XMLHttp = new XMLHttpRequest();}else if(window.ActiveXObject){ try { XMLHttp = new ActiveXObject("Msxml2.XMLHTTP"); } catch(e) { try { XMLHttp = new ActiveXObject("Microsoft.XMLHTTP"); } catch(e) { } }} I would think that if IE7 supports the XMLHttpRequest, this would work in IE. Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now