Jump to content

AJAX Tutorial


Guest Roy A.

Recommended Posts

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

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...