获取选定的HTMl [英] Get Selected HTMl

查看:59
本文介绍了获取选定的HTMl的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述



js或客户端脚本是否可以向用户显示他们输入的任何网站,然后让我们选择某个区域(可能使用裁剪工具)和脚本获取所选区域的HTML代码?我怎么能这样做?任何帮助都会非常感激。


谢谢

Hi
Is it possible for a js or client side script to show the user any site that they enter, then let then select a certain area (possibly with a crop tool) and the script to get the html code for the selected area? how could i do this? any help would be really appreciated.

thanks

推荐答案

我看到了你在找什么Webwag:他们的Widget On Demand功能。
I''ve seen what you''re looking for on Webwag: their Widget On Demand feature.



我已经看到了你在Webwag上寻找的东西:他们的Widget On Demand特征。
I''ve seen what you''re looking for on Webwag: their Widget On Demand feature.



你会怎么做呢?

How would you go about doing this?


首先,尝试使用cropper工具从你自己的网站获取内容。搜索一个 - 你应该找到一些好的。


一旦你开始工作,你现在需要从你的域中获取另一个站点以避免跨域问题。为此,请从服务器端发出Http请求以将页面放到您自己的域中。
Firstly, try using a cropper tool to get content from your own site. Search for one - you should find some good ones.

Once you get that working, you now need to get the other site from your domain to avoid cross-domain issues. To do that, make a Http request from the server-side to get the page onto your own domain.


这篇关于获取选定的HTMl的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆