求教一个xml访问问题:
用js创建一个xmlHttpRequest或者xmlDoc在IE本地是可以跨域访问远程xml的,可到了firefox下就被拒绝了,
而如果程序在a.domain.com下,xml文件在b.domain.com下,这时ie和firefox都不可以访问!求教最好的解决方法!急!!!谢谢大家了,感谢您的经验与智慧!!!

解决方案 »

  1.   

    http://www.xml.com/pub/a/2005/11/09/fixing-ajax-xmlhttprequest-considered-harmful.html
      

  2.   

    用ASP(或者其他语言都可以)做代理;先把远程xml通过XMLHTTP取回,再用JS读取
      

  3.   

    谢谢,有没有人介绍一下document.domain方法呢,
    Internet Explorer 6.0 document.domain 屬性無法如預期運作
      

  4.   

    Internet Explorer 6.0 document.domain 屬性無法如預期運作
    我的IE6是可以的,但是前提是这两个域必须是属于同一域下,比如象这种:
    news.163.com 和 it.163.com
    而这样的肯定不行:
    news.tom.com和news.163.com