AJAX JQuery Upload Image
This question already has an answer here:
1st aprroach:-
You will need to use formData() for using ajax and ajax calls need a couple of more parameters to be set. Just follow :-
http://hayageek.com/jquery-ajax-form-submit/
But do check the browser compatability
Edit: - Live code(php) + demo - here
2nd approach:-
You can also use iframes for uploading images instead of AJAX
http://www.akchauhan.com/upload-image-using-hidden-iframe/
You will get working examples of both approaches as per the server side language you are using(ie php, rails, java etc)
链接地址: http://www.djcxy.com/p/19626.html上一篇: 用1行代码打开读取和关闭文件
下一篇: AJAX JQuery上传图片