Christoph: Ajax-Post-Request

Beitrag lesen

Moin.

Weist du zufaellig, wie es sich damit verhaelt, dass wenn man nur ein Microsoft.XMLHTTP-Objekt erzeugt, immer die aktuellste MSXML-Version herangezogen werden soll?

Gute Frage. Wie würdest du folgendes Zitat interpretieren:

MSXML2 vs. Microsoft namespace – I’ve also seen a lot of code that instantiates the “Microsoft.XMLHTTP” ActiveX object rather than the MSXML2.XMLHTTP.3.0 or MSXML2.XMLHTTP.6.0 if you’re using 6.0.  The “Microsoft” namespace is actually older and is only implemented in MSXML3 for legacy support.  It’s unfortunate we used the “better” name on the older version, but stick to the “msxml2” namespace when instantiating objects.

Wenn MSXML2.XMLHTTP.3.0 verfügbar ist, sind dann Microsoft.XMLHTTP, MSXML2.XMLHTTP und MSXML2.XMLHTTP.3.0 äquivalent, unabhängig davon, ob MSXML2.XMLHTTP.6.0 verfügbar ist? Das wäre meine Interpretation...

Christoph

PS: Microsoft empfiehlt im MSDN-Artikel zu XMLHttpRequest

For clients prior to Internet Explorer 7, use the following syntax to create the object:

  
var oReq = new ActiveXObject("MSXML2.XMLHTTP.3.0");