Skip to main content

Bug Tracker

Side navigation

#2128 closed bug (duplicate)

Opened January 08, 2008 06:26PM UTC

Closed August 04, 2008 02:18PM UTC

error xml ajax in internet explorer

Reported by: rleon Owned by:
Priority: minor Milestone: 1.2.4
Component: ajax Version: 1.2.1
Keywords: Cc: hfelici@gmail.com
Blocked by: Blocking:
Description

old:

var xml = window.ActiveXObject ? new ActiveXObject("Microsoft.XMLHTTP") : new XMLHttpRequest();

new:

var xml;

if (window.ActiveXObject) {

try {

xml = new ActiveXObject("Msxml2.XMLHTTP");

} catch (e) {

xml = new ActiveXObject("Microsoft.XMLHTTP");

}

} else {

if (window.XMLHttpRequest) {

xml = new XMLHttpRequest();

}

}

Attachments (1)
  • ajax.js.diff (1.3 KB) - added by cmcnulty August 02, 2008 11:10PM UTC.

    tries more xmlhttp activeX strings if first does not work.

Change History (5)

Changed January 18, 2008 05:23AM UTC by davidserduke comment:1

Is there some test case that displays a problem you are having with the current code?

Changed May 15, 2008 02:25PM UTC by flesler comment:2

milestone: 1.2.21.2.4
need: PatchTest Case

Changed August 02, 2008 11:09PM UTC by cmcnulty comment:3

We have a client that is having a problem. We haven't yet been able to reproduce it in house, but we believe it has to do with their use of thin clients/terminal service. They're on IE6/Windows 2000, and they log in as a non-administrator. The symptom we're seeing is that IE throws an error on: new ActiveXObject("Microsoft.XMLHTTP"); , however it does not throw an error on MSXML2.XMLHttp.5.0. We've developed the attached patch for dealing with the issue, and I for one would like to see it encorporated into ajax.js. If nothing else it shouldn't change behavior for existing users.

Changed August 03, 2008 04:34PM UTC by cmcnulty comment:4

See #3087 for a better more flexible fix than either the original suggestion or my added patch.

Changed August 04, 2008 02:18PM UTC by flesler comment:5

resolution: → duplicate
status: newclosed

The XHR creation process is exposed since [5805] allowing overriding.

You can add this code externally.