ajaxupload.js - ajaxify your forms and file uploads
I'm happy to say that we just open sourced some of our javascript source code: ajaxuploads.js
A jQuery plugin to handle ajax forms and uploads.
Usage:
// ajaxify a form (also <input type="file">)
$("form").ajaxform({
// events
"loadstart": function(){},
"load": function(){},
"loadend": function(){},
"progress": function(){},
"complete": function(){},
"readystatechange": function(){}
});
// enable an element to upload files on drag'n drop
$("#myelement").uploadOnDrag({
"action": '',
"single": false,
"method": 'POST',
"params": {},
// events
"before": function(options){},
"loadstart": function(){},
"load": function(){},
"loadend": function(){},
"progress": function(){},
"complete": function(){},
"allcomplete": function(){},
"readystatechange": function(){}
});
http://agentejo.com/blog/ajaxupload.js-ajaxify-your-forms-and-file-uploads
Notice: Only supported by modern browsers.
Written by Artur
Related protips
Have a fresh tip? Share with Coderwall community!
Post
Post a tip
Best
#Jquery
Authors
Sponsored by #native_company# — Learn More
#native_title#
#native_desc#