Hi,
i tried to use the ActiveXObject("CiscoURLProxy.URLGrabber")
, but when i run the code it gives the following :
Error Type:
Microsoft JScript runtime (0x800A01AD)
Automation server can't create object
please help me to fix it .
here is a part of the code :
<%@LANGUAGE="JAVASCRIPT" CODEPAGE="65001"%>
<%
Response.ContentType = "text/xml";
function removeTags(HTMLString) {
txt = HTMLString.replace(/<[^<]*>/g, ""); // Strip all the tags in this form <tags>
txt = txt.replace(/ /g, " "); // Replace to space
return txt;
}
Proxy = new ActiveXObject("CiscoURLProxy.URLGrabber");
p = String(Proxy.GetURL("http://www.hko.gov.hk/wxinfo/currwx/current.htm"));
%>