开发者

Ajax Upload plugin does not bind click event

开发者 https://www.devze.com 2023-02-18 21:21 出处:网络
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

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'
});
0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号