Windows Server 2003 r2 64 bit and msxml

  • Follow


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 


0
Reply Ike 6/21/2006 12:06:32 PM


Ike wrote:

> 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
<http://www.microsoft.com/downloads/details.aspx?familyid=993c0bcf-3bcf-4009-be21-27e85e1857b1&displaylang=en>
so you might want to install MSXML 6 and check whether adding
   Msxm2.XMLHTTP.6.0
to the loop improves things.



-- 

	Martin Honnen
	http://JavaScript.FAQTs.com/
0
Reply Martin 6/21/2006 12:37:15 PM


Ike wrote in news:cDamg.9136$o4.4758@newsread2.news.pas.earthlink.net in 
comp.lang.javascript:

> 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.

http://www.microsoft.com/downloads/details.aspx?FamilyID=d41b036c-e2e1-
4960-99bb-9757f7e9e31b&DisplayLang=en

Rob.
-- 
http://www.victim-prime.dsl.pipex.com/
0
Reply Rob 6/21/2006 8:29:57 PM

2 Replies
300 Views

(page loaded in 0.057 seconds)

Similiar Articles:













7/22/2012 5:48:06 PM


Reply: