Hello,
I am creating a website which has to do the following. I want to get information (text) automatically from another website on another server. That information has to come on my own website. I am building my website in ASP in combination with VBScript. And I am using HomeSite to build my website. Now I found out that I can use the Internet Transfer Control. I found this code (or something like this) to do what I want:
Set objInet=CreateObject("InetCtls.Inet"
objInet.Protocol = 4 'HTTP
objInet.AccessType = 1 'Direct connection to internet
objInet.URL = strURL 'The website I want to get the information from
strHTML=objInet.OpenURL 'grab HTML page
But when I want to run my site, I get the following message:
Runtimefout Microsoft VBScript fault '800a01ad'
ActiveX-item can not make the object: 'InetCtl.Inet'
/eigen/lokaaltest.asp, line 43
What am I doing wrong? Do I have to download something?
Or is there another way to get the information from the website? I hope that someone can help me as soon as possible.
Greetz, Ute. [sig][/sig]
I am creating a website which has to do the following. I want to get information (text) automatically from another website on another server. That information has to come on my own website. I am building my website in ASP in combination with VBScript. And I am using HomeSite to build my website. Now I found out that I can use the Internet Transfer Control. I found this code (or something like this) to do what I want:
Set objInet=CreateObject("InetCtls.Inet"
objInet.Protocol = 4 'HTTP
objInet.AccessType = 1 'Direct connection to internet
objInet.URL = strURL 'The website I want to get the information from
strHTML=objInet.OpenURL 'grab HTML page
But when I want to run my site, I get the following message:
Runtimefout Microsoft VBScript fault '800a01ad'
ActiveX-item can not make the object: 'InetCtl.Inet'
/eigen/lokaaltest.asp, line 43
What am I doing wrong? Do I have to download something?
Or is there another way to get the information from the website? I hope that someone can help me as soon as possible.
Greetz, Ute. [sig][/sig]