Sharepoint Forum

 
Home » Forum » Sharepoint       Ask a questionRSS Feeds

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

  Asked By: Veer Chitale         Date: Oct 09, 2009      Category: Sharepoint      Views: 247
 

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");


Do you know someone who can help? Share a link to this thread on twitter, or facebook.

Tagged:                    

 

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

 


Your Answer
  • Answer should be atleast 30 Characters.
  • Please put code inside [Code] your code [/Code].