/    Sign up×
Community /Pin to ProfileBookmark

GetXmlHttpObject (Microsoft.XMLHTTP) doesn’t work in IE 5,6

The code works everywhere but IE 5,6. Why?

[CODE]function GetXmlHttpObject(){

var request = null;

if (window.XMLHttpRequest){

// If IE7, Mozilla, Safari, Opera etc: Use native object
request = new XMLHttpRequest()

}
else
{
if (window.ActiveXObject){
// …otherwise, use the ActiveX control for IE5.x and IE6
request = new ActiveXObject(“Microsoft.XMLHTTP”); //!!!!!!!! this doesn’t work
}
}
[/CODE]

to post a comment
JavaScript

3 Comments(s)

Copy linkTweet thisAlerts:
@felgallSep 20.2007 — JavaScript is case sensitive - try Microsoft.XmlHttp instead of Microsoft.XMLHTTP

Should work in IE4 and up.
Copy linkTweet thisAlerts:
@Louigi_VeronaauthorSep 20.2007 — Thx, I'll try!!!
Copy linkTweet thisAlerts:
@Louigi_VeronaauthorSep 20.2007 — JavaScript is case sensitive - try Microsoft.XmlHttp instead of Microsoft.XMLHTTP

Should work in IE4 and up.[/QUOTE]



Nope, didn't help ?
×

Success!

Help @Louigi_Verona spread the word by sharing this article on Twitter...

Tweet This
Sign in
Forgot password?
Sign in with TwitchSign in with GithubCreate Account
about: ({
version: 0.1.9 BETA 6.17,
whats_new: community page,
up_next: more Davinci•003 tasks,
coming_soon: events calendar,
social: @webDeveloperHQ
});

legal: ({
terms: of use,
privacy: policy
});
changelog: (
version: 0.1.9,
notes: added community page

version: 0.1.8,
notes: added Davinci•003

version: 0.1.7,
notes: upvote answers to bounties

version: 0.1.6,
notes: article editor refresh
)...
recent_tips: (
tipper: @nearjob,
tipped: article
amount: 1000 SATS,

tipper: @meenaratha,
tipped: article
amount: 1000 SATS,

tipper: @meenaratha,
tipped: article
amount: 1000 SATS,
)...