简体   繁体   English

通过Ajax上传图像要拖动内容?

[英]Image upload via Ajax To draggable content?

I Am building a simple application with drag and drop functionality (a stickies board is good example) the users will post text stickies via Ajax, php. 我正在构建具有拖放功能的简单应用程序(粘性板就是一个很好的例子),用户将通过Ajax,php发布文本粘性。 Which loop back and be draggable stickies (done using jquery ui). 哪个循环返回并是可拖动的粘性(使用jquery ui完成)。

I did want to have image upload too. 我也确实想上传图片。 but research has pointed to the fact this not possible with Ajax. 但是研究指出,Ajax无法做到这一点。 So any ideas? 有什么想法吗? I have Heard about using iframe as a target for the post data (to fake Ajax). 我听说过将iframe用作发布数据(伪造Ajax)的目标。

I have seen it done, the site that gave the idea is www.stixy.com. 我已经看过了,给出这个主意的网站是www.stixy.com。 This what I am after in an ideal world. 这就是我在理想世界中追求的目标。

If you are using jQuery, this is a great plugin that will make it easy for you to upload multipart form seamlessly. 如果您使用的是jQuery,那么这是一个很棒的插件,可让您轻松无缝地上传多部分表单。

http://jquery.malsup.com/form/ http://jquery.malsup.com/form/

It will handle the creation of the iframe and everything else. 它将处理iframe以及其他所有内容的创建。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM