◆◆◆100分求助,跨域读取HTML内容。
http://www.Mytest.cn
域名下面的某个asp页面实现如下功能:
读取跨域HTML页面的部分内容,显示在该asp页面中的某个<div>中,或者存储到http://www.Mytest.cn的数据库,如何实现?!!
<object id=editA style="width:400;height:280;" type="text/x-scriptlet" data="http://www.OtherA.com"></object>
不行;
<IE:Download ID="oDownload" STYLE="behavior:url(#default#download)" />
<body onload="oDownload.startDownload('http://www.OtherB.com/test.htm',onDownloadDone)">
<span id=showImport></span>
<script language=javascript><!--
function onDownloadDone(downDate)
{
document.all.showImport.innerHTML=downDate; //这种方法被讨论出来是最好的
}
//--></script>
也不行
域名下面的某个asp页面实现如下功能:
读取跨域HTML页面的部分内容,显示在该asp页面中的某个<div>中,或者存储到http://www.Mytest.cn的数据库,如何实现?!!
<object id=editA style="width:400;height:280;" type="text/x-scriptlet" data="http://www.OtherA.com"></object>
不行;
<IE:Download ID="oDownload" STYLE="behavior:url(#default#download)" />
<body onload="oDownload.startDownload('http://www.OtherB.com/test.htm',onDownloadDone)">
<span id=showImport></span>
<script language=javascript><!--
function onDownloadDone(downDate)
{
document.all.showImport.innerHTML=downDate; //这种方法被讨论出来是最好的
}
//--></script>
也不行
...全文
相关推荐
如何用Nginx解决前端跨域问题
在开发静态页面时,类似Vue的应用,我们常会调用一些接口,这些接口极可能是跨域,这篇文章主要介绍了如何用Nginx解决前端跨域问题,非常具有实用价值,需要的朋友可以参考下
iframe跨域嵌套自适应高度
iframe跨域嵌套自适应高度 iframe跨域嵌套 丢失session值(针对嵌套asp.net 做的网站)
完美解决跨域iframe的高度自适应
完美解决跨域iframe的高度自适应,完美解决跨子域iframe的高度自适应,嵌入几个页面解决跨域iframe的高度自适应。。。
iframe跨域常用问题和iframe页面自适应
这是关于iframe使用过程中出现的问题整理的解决方法,关于使用iframe不用单独写接口打通数据,直接把数据通过ifarme嵌套方法传递过去,使用简单方便。
html5 ajax 文件上传跨域进度问题
html 5 跨域进度问题。


