Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Dell Sala
committed
Mar 27, 2012
1 parent
f2272f2
commit 16227c7
Showing
2 changed files
with
41 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
/README.html |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,40 @@ | ||
jQuery Asynchronous Upload Plugin | ||
================================= | ||
|
||
What is it? | ||
---------- | ||
Turns an element into an asynchronous file upload trigger. | ||
|
||
* bare-bones ajax file upload functionality | ||
* no built-in ui (other than a required trigger element) | ||
* hooks for attaching your own ui interactions | ||
* fully customizable server-side response handling/formatting | ||
* html4 iframe implementation only (no progress reporting) | ||
* single file upload per trigger | ||
|
||
|
||
How to Use it | ||
------------- | ||
|
||
###HTML | ||
<input type="button" id="myUploadButton" value="Upload a File"> | ||
|
||
###JavaScript | ||
|
||
$(function () { | ||
$('#myUploadButton').uploader({ | ||
url : '/some-upload-handler.php', | ||
inputName : 'my_upload_file', | ||
onStart : function () { | ||
$('body').append('Upload started...'); | ||
}, | ||
onComplete : function (response) { | ||
$('body').append('Upload finished. Response: '+response); | ||
} | ||
}); | ||
}); | ||
|
||
|
||
|