上传与jQuery模态对话框示例图片 [英] Upload images with jQuery modal dialog sample

查看:242
本文介绍了上传与jQuery模态对话框示例图片的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

有谁知道的任何项目/演示等,可以告诉我下面

Does anyone know any projects/demo etc that could show me the following,

点击页面和一个jQuery模态对话框上的上传图片链接有一个表单,允许用户从电脑上传图片或指定的Web链接到的图像显示出来。该图像,然后阿贾克斯上传,它显示了在模态对话框的缩略图,用户点击模态对话框消失后,对应的HTML片段插入到一个textarea的图像后(我使用TinyMCE的在这里)。

clicking on an "Upload image" link on the page and a jQuery modal dialog shows up with a form that lets the user uploads an image from the computer or specify a link to an image on web. Then the image is ajax uploaded and it shows up a thumbnail on the modal dialog, after that the user clicks the image the modal dialog disappears and the according html snippet is inserted to an textarea (I'm using TinyMce here).

这pretty多是Word preSS做,但Word preSS太复杂了学习的榜样。有谁知道一个更简单的示例,preferably一个ASP.NET MVC应用程序,或者可能有人点我需要做什么吗?

This pretty much is what WordPress does, but WordPress is too complex to learn from. Does anyone know an easier sample, preferably an ASP.NET MVC app, or could someone point me to what needs to be done please?

推荐答案

要与你开始可以使用uploadify插件: HTTP ://www.uploadify.com/

To start with you can use the uploadify plugin: http://www.uploadify.com/

您有一些事件,当文件被上传。实施这些事件,并在这里做的工作。

You have some events when the file is uploaded. Implement these event and do the job here.

希望这有助于

这篇关于上传与jQuery模态对话框示例图片的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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