Re: Which one to use....

Tech-Archive recommends: Fix windows errors by optimizing your registry

From: Juan T. Llibre [MVP] (nomailreplies_at_nowhere.com)
Date: 12/16/04


Date: Thu, 16 Dec 2004 17:02:32 -0400

Hi, Matt.

Kevin meant this type of object creation:

<object runat="server" progid="msxml2.DOMDocument.5.0" id="xObj"> </object>

Which may be slightly preferrable to :

JavaScript
var xml = new ActiveXObject("Msxml2.DOMDocument.5.0");

VBScript
Dim xml
Set xml = CreateObject("Msxml2.DOMDocument.5.0")

Those types of object creation replace the legacy :

var source = Server.CreateObject("MSXML2.DOMDocument");
or
var xml = new ActiveXObject("Msxml2.DOMDocument.2.6");.

Juan T. Llibre
===========
"Matt Berther" <mberther@hotmail.com> wrote in message news:6816195632388007198500963@news.microsoft.com...
> Hello Kevin,
>
> Why would he use <OBJECT> to create an ActiveX object in javascript?
>
> Jonathan,
>
> The answer is to use MSXML2.XMLHTTP.
>
> --
> Matt Berther
> http://www.mattberther.com
>
>> You should use an <OBJECT> tag in the HTML that is sent to the client.
>>
>> "Jonathan" <Jonathan_ SmithUSA@hotmail.com> wrote in message
>> news:##rr5954EHA.2876@TK2MSFTNGP12.phx.gbl...
>>
>>> I am talking about client side script(java script) only.
>>> So, which one I should use?
>>> Thanks,
>>> Jonathan