如何将剪贴板中的图像粘贴到Web表单中? [英] How can I paste an image from the clipboard into a web form?

查看:133
本文介绍了如何将剪贴板中的图像粘贴到Web表单中?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我找到了这个问题,但问题是关于如何从剪辑板获取图像到wyziwyg编辑器!

I found this question, but the question is about how to get an image from the clip board into a wyziwyg editor!

我的问题是如何将剪贴板中的图像粘贴到字段中(哪个字段是只要它工作就不是那个大问题,然后发送到服务器。

My question is "How can I paste an image from the clipboard into a field (what field is not that big issue as long as it works)", and then sent to the server.

Jira 具有此功能,因此它应该是可能的!

Jira has this functionality, so it should be possible!

有关如何执行此操作的任何想法?

Any ideas on how to do this?

只是为了解释完整的工作流程;我想有一个多上传图片的平台,其中来自剪贴板的粘贴也是一个选项。上传将是某种类型的ajax,在这种情况下bt并不重要!

Just to explain the complete workflow; I would like to have a plave to multi upload images, where the paste from clipboard also is an option. The upload will be some ajax of some sort, bt is not important in this context!

谢谢

推荐答案

更新25/11/2014

作为 Alistar 说你不能只用 javascript 和html,但等等,不是那么简单,根据你的需要你可以尝试不同的方式

As Alistar say you can't do this with only javascript and html, but wait, is not so simple, depending on what you need you can try different way!


.. clipboard方法只能将字符串放在剪贴板上。对于其他
类型的数据,例如网址或图片,
您需要使用更复杂的
方法...

HTML5


  • http://www.w3.org/TR/clipboard-apis/
  • http://www.w3.org/TR/clipboard-apis/#mandatory-data-types-1




  1. http://caniuse.com/#feat=clipboard

  2. https ://developer.mozilla.org/en-US/docs/Web/API/ClipboardEvent

  1. http://caniuse.com/#feat=clipboard
  2. https://developer.mozilla.org/en-US/docs/Web/API/ClipboardEvent

Flex / Flash / ActionScript


  • Clipboard data formats
  • ActionScript 3.0 - Clipboard




  1. http://www.flexets.com/show-image-from-clipboard

  2. http://upog.wordpress.com/2010/02/14/copy-and-paste-in-flex-web-application/

  1. http://www.flexets.com/show-image-from-clipboard
  2. http://upog.wordpress.com/2010/02/14/copy-and-paste-in-flex-web-application/

JAVA


  • http://java.sun.com/j2se/1.5.0/docs/api/java/awt/datatransfer/Clipboard.html




  1. http://www.java2s.com/Code/Java /2D-Graphics-GUI/SendingImageObjectsthroughtheClipboard.htm

  2. http://lassebunk.dk/2009/08/04/clipboard-java-applet/

  3. http://www.devdaily.com/java/java-clipboard-image-copy-paste

  1. http://www.java2s.com/Code/Java/2D-Graphics-GUI/SendingImageObjectsthroughtheClipboard.htm
  2. http://lassebunk.dk/2009/08/04/clipboard-java-applet/
  3. http://www.devdaily.com/java/java-clipboard-image-copy-paste

ActiveX

用于图像复制的剪贴板ActiveX /粘贴到Web表单

这篇关于如何将剪贴板中的图像粘贴到Web表单中?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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