Ticket #2128 (closed bug: duplicate)
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@… | |
| Blocking: | Blocked by: |
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
Change History
comment:2 Changed 5 years ago by flesler
- need changed from Patch to Test Case
- Milestone changed from 1.2.2 to 1.2.4
comment:3 Changed 5 years ago by cmcnulty
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 5 years ago by cmcnulty
-
attachment
ajax.js.diff
added
tries more xmlhttp activeX strings if first does not work.
Please follow the bug reporting guidlines and use jsFiddle when providing test cases and demonstrations instead of pasting the code in the ticket.

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