Ajax Upload plugin does not bind click event
I've downloaded the following plugin: http://valums.com/ajax-upload/
Unfortunately it does not work with the FileUploaderBasic (which is the one i have to use because i don't want the FileUploader capabilities)
I've tried to read the documentation co开发者_如何学JAVAuntless times, and read the comments, but i can't get it to work.
This is my code:
var uploader = new qq.FileUploaderBasic({
element: document.getElementById('editProfileAvatarUploadButton'),
action: 'ajax.php'
});
I don't get any errors in the console.
Can someone give me a solution to this problem?
Thanks in advance
You will need to pass it a button
option for the FileUploaderBasic class to work.
Like so:
var uploader = new qq.FileUploaderBasic({
button: document.getElementById('editProfileAvatarUploadButton'),
action: 'ajax.php'
});
精彩评论