开发者

parse html data from iframe in anoter domain

开发者 https://www.devze.com 2023-04-08 14:03 出处:网络
Hi i have an application in http://abc.def.aspx and I want to parse the contents (basically a report) existing inhttp://uvw.xyz.html . I have created an iframe in def.aspx page but it gives me permiss

Hi i have an application in http://abc.def.aspx and I want to parse the contents (basically a report) existing in http://uvw.xyz.html . I have created an iframe in def.aspx page but it gives me permission error. I just want to parse the html content to allow开发者_如何学Go new sorting features to the page. Can anyone point me to the right direction please


You cannot access the iframe for security reasons (if its a different domain)

The only solution I can suggest is if you have server side logic, you can go get the html of the different domain and parse the content on the server first.

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号