Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations bkrike on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

How to use IHTMLDocument2 script?

Status
Not open for further replies.

marcela24

Programmer
Feb 17, 2003
72
NL
I want to retrieve the session cookie in the client side.
I found out a script called IHTMLDocument2 that can do exactly this.
I have one example:
Dim objDoc As IHTMLDocument2

But i have an error message: Microsoft VBScript compilation error '800a0401'
Expected end of statement
/cog_teste/smart_location.asp, line 6
Dim objDoc As MSHTML.IHTMLDocument2

And then i do it like this:
Set objDoc = Server.CreateObject("MSHTML.IHTMLDocument2")

And at this time i have this error message:
Server object error 'ASP 0177 : 800401f3'
Server.CreateObject Failed
/cog_teste/smart_location.asp, line 17
Invalid ProgID. For additional information specific to this message please visit the Microsoft Online Support site located at:
Does anybody know whta´s the problem with my code or how can i use this component? I think that ProgID error is when you don´t have the component installed.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top