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: |
Description
Screen shot of error:
in ajax.js
xhr:function(){ return window.ActiveXObject ? new ActiveXObject("Microsoft.XMLHTTP") : new XMLHttpRequest(); },
should be something like
xhr:function(){ 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 October 08, 2009 12:07PM UTC by comment:1
Changed November 03, 2009 12:49AM UTC by 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 comment:3
Windows XP Professional
Service Pack 3
Changed December 10, 2009 03:57AM UTC by comment:4
Changed January 05, 2010 03:58PM UTC by comment:5
resolution: | → fixed |
---|---|
status: | new → closed |
version: | 1.3.2 → 1.4a2 |
http://darklaunch.com/2009/10/08/automation-server-can-t-create-object-jquery