the browser doesn't allow you to access the document object model for pages from another domain, try to retrieve the page on the server side and parse the html

解决方案 »

  1.   

    try to retrieve the page on the server side and parse the html
    怎么做呢?难道要去看我的临时文件,然后打开它去查看吗?或者用
    view source(查看源文件)的方式看了后自己去搜索这个数据项吗?
    我希望能计算机自动取出来阿,怎么办?
      

  2.   

    我曾经可以access the document object model for pages from LAN
    但是现在这样写怎么也不行了呢?
    <iframe src="http://localhost/myHtml.htm" id=x 
    onload="alert(x.document.all.ie.value);"></iframe>而把http://localhost/myHtml.htm改为myHtml.htm就可以了
    好象它只要通过了web服务器就不行,
    通过局域网访问应该是可以的吧,这里不行可能会是什么原因呢?