Skip to main content

Bug Tracker

Side navigation

#5338 closed bug (fixed)

Opened October 08, 2009 12:06PM UTC

Closed January 05, 2010 03:58PM UTC

ajaxSettings.xhr Automation server can't create object

Reported by: user52 Owned by:
Priority: major Milestone: 1.4
Component: ajax Version: 1.4a2
Keywords: Automation server can't create object Cc:
Blocked by: Blocking:

Screen shot of error:

in ajax.js

	return window.ActiveXObject ? new ActiveXObject("Microsoft.XMLHTTP") : new XMLHttpRequest();

should be something like

	if (window.XMLHttpRequest) {
		return new XMLHttpRequest();
	else if (window.ActiveXObject) {
		try {
			return new ActiveXObject("Microsoft.XMLHTTP");
		catch(e) {
			try {
				return new ActiveXObject("Msxml2.XMLHTTP");
			catch(e) {
				return false;
Attachments (0)
Change History (5)

Changed November 03, 2009 12:49AM UTC by dmethvin comment:2

The IE7 native XMLHttpRequest object was broken and is being circumvented so the code can't be implemented that way. The one thing in particular I can remember is that IE7 XHR doesn't support file urls. So the test for ActiveXObject has to be done first.

It sounds like Microsoft.XMLHTTP isn't installed on some systems but Msxml2.XMLHTTP is then? What version of Windows and service pack is this?

Changed November 09, 2009 06:46AM UTC by user52 comment:3

Windows XP Professional

Service Pack 3

Changed December 10, 2009 03:57AM UTC by dmethvin comment:4

summary: Automation server can't create object in ajaxSettings.xhrajaxSettings.xhr Automation server can't create object

See related tickets #2849, #3623, #5529, when fixing this.

Changed January 05, 2010 03:58PM UTC by john comment:5

resolution: → fixed
status: newclosed