Board index » javascript » Windows Server 2003 r2 64 bit and msxml

Windows Server 2003 r2 64 bit and msxml

2006-06-21 08:06:32 PM
Is anyone aware of any reason why the following won't work on a
Windows Server 2003 r2 64 bit Edition? I am simply calling the following
snippet,
and trying to execute it in a browser window there, just as I do any
other version of Windows:
if (window.ActiveXObject && !window.XMLHttpRequest) {
window.XMLHttpRequest = function() {
var msxmls = new Array(
'Msxml2.XMLHTTP.5.0',
'Msxml2.XMLHTTP.4.0',
'Msxml2.XMLHTTP.3.0',
'Msxml2.XMLHTTP',
'Microsoft.XMLHTTP');
for (var i = 0; i < msxmls.length; i++) {
try {
return new ActiveXObject(msxmls[i]);
} catch (e) {
}
}
return null;
};
//Ike
-
 

Re:Windows Server 2003 r2 64 bit and msxml

Ike wrote:
Quote
Is anyone aware of any reason why the following won't work on a
Windows Server 2003 r2 64 bit Edition? I am simply calling the following
snippet,
and trying to execute it in a browser window there, just as I do any
other version of Windows:
Which browser is that on Windows Server 2003, is that IE 6? IE 6 usually
comes with MSXML 3 so you should be able to instantiate
Msxml2.XMLHTTP.3.0. I have however never worked on 64 bit systems.
MSDN claims that the new MSXML 6 version has a 64 bit redistributable
<www.microsoft.com/downloads/details.aspx>
so you might want to install MSXML 6 and check whether adding
Msxm2.XMLHTTP.6.0
to the loop improves things.
--
Martin Honnen
JavaScript.FAQTs.com/
-

Re:Windows Server 2003 r2 64 bit and msxml

Ike wrote in news:cDamg.9136$o4.4758@newsread2.news.pas.earthlink.net in
comp.lang.javascript:
Quote
Is anyone aware of any reason why the following won't work on a
Windows Server 2003 r2 64 bit Edition? I am simply calling the following
snippet,
and trying to execute it in a browser window there, just as I do any
other version of Windows:

if (window.ActiveXObject
MS have upped the default security settings for Server 2003, this
probably includes disabling ActiveX support.
www.microsoft.com/downloads/details.aspx
4960-99bb-9757f7e9e31b&DisplayLang=en
Rob.
--
www.victim-prime.dsl.pipex.com/
-