对不起,我要表达的不是这个意思
我的意思是
我要把其他的网页(比如说www.google.com)
得到可以解析的DOM
也就是说
source = new ActivexObject('');//应该写点什么?
source.load('www.google.com');

解决方案 »

  1.   

    use XMLHTTP
    source = new ActivexObject('Micrsoft.XMLHTTP');
    source.open ("GET","http://www.google.com",false);
    source.send();
    if (source.status == 200)
      alert(source.responseText);you can also do   var objXMLDocument;
       objXMLDocument = Server.CreateObject("MSXML2.DOMDocument");
       objXMLDocument.async = false;
       objXMLDocument.resolveExternals = false;
       objXMLDocument.setProperty ("ServerHTTPRequest", true);
       objXMLDocument.load ("http://someotherserver/respond.asp");
       ...but if you are using .NET, use HttpWebRequest/HttpWebResponse in System.Netsee
    Supporting XMLHTTP functionality in .NET 
    http://dotnetjunkies.com/weblog/darrell.norton/posts/468.aspx
      

  2.   

    为什么我用HttpWebRequest/HttpWebResponse得到的值里面,无法显示汉字
    是不是字符编码的问题
    代码如下,请指教
    string url = "http://www.gooooal.com/www/live_cn.htm";
    HttpWebRequest req = (HttpWebRequest)WebRequest.Create(url);
    WebResponse wrs = req.GetResponse();
    Stream strm = wrs.GetResponseStream();
    StreamReader sr = new StreamReader(strm);
    string line = "";
    string content = "";
    while(line != null)
    {
        content += line;
        line = sr.ReadLine();
    }