开发者

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

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜