Sharepoint Forum

Ask Question   UnAnswered
Home » Forum » Sharepoint       RSS Feeds

Using WinHttp from a .HTC behavior set in a .CSS style sheet

  Asked By: Veer    Date: Oct 09    Category: Sharepoint    Views: 1246

We use CSS and .HTC behaviors to customize the look (and sometimes function)

of a WSS site. We do this by associating foo.htc with a WSS CSS class.
However, in our foo.htc, when we use to use

var oHTTP = new ActiveXObject("WinHttp.WinHttpRequest.5.1");

... we get the error:

Microsoft Internet Explorer
Name: Error - Message: Automation server can't create object

Any ideas on why this doesn't work. As a counter example, we don't have
any problem using similar code with the XML DOM:

var xml = new ActiveXObject("MSXML2.DOMDocument.3.0");



No Answers Found. Be the First, To Post Answer.