是否可以在网站(应用程序)之间拖放图像? [英] Is it possible to Drag-and-Drop images between Web sites (applications)?

查看:87
本文介绍了是否可以在网站(应用程序)之间拖放图像?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述



问题:是不是有关于拖放问题的stackoverflow有很多问题,但是我看不到与这个问题有任何关系。可能将图像从一个Web应用程序(或站点)拖放到另一个Web应用程序(不是相同的窗口等)?



我没有看对于可能有助于实现这一目标的具体技术,只要可以使用Web应用程序安全限制。



例如,我已经阅读了一个Web不可能应用程序的Javascript与另一个Web应用程序的DOM混淆(显而易见的原因)。



我只想将一个网页上显示的图像拖动到Web中



谢谢,
Ashley。

解决方案

在html中没有定义拖放。许多浏览器(不是IE IIRC)支持将图像URL拖放到文本框中。因此,如果您从一个网站拖动图片并将其拖动到另一个网站的文本框中,您将拥有图像的完整网址。你可以从那里获取JavaScript


There are a number of questions on stackoverflow about drag-and-drop but I can't see that any relate to this question specifically.

Question: Is it possible to drag-and-drop an image from one Web application (or site) to another Web application (not the same window etc.)?

I'm not looking for specific technologies that may help one achieve this, just if it is possible with Web application security restrictions.

For example, I've read that it's not possible for one Web application's Javascript to mess with the DOM of another Web application (for obvious reasons).

I just want to be able to drag an image displayed on one Web page into a Web application on another page (and for that application to have full access to the image).

Thanks, Ashley.

解决方案

Drag and drop is not defined within html. Many browsers (not IE IIRC) support drag and dropping image URL's into text boxes. So if you drag an image from a one site and drag it into another site's textbox you will have the full URL of the image. You can have JavaScript take it from there

这篇关于是否可以在网站(应用程序)之间拖放图像?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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