LPology / Simple-Ajax-Uploader

Javascript file upload plugin with progress bar support. Works in all major browsers, including IE7+, Chrome, Firefox, Safari, and Opera. No dependencies - use it with or without jQuery.
995 stars 267 forks source link

problem when change btn obj name #104

Closed moosavimaleki closed 8 years ago

moosavimaleki commented 9 years ago
        var soundUploader = new ss.SimpleUpload({
            button: btn,
            url: 'wr-upload.php',
            name: 'uploadfile',
            hoverClass: 'hover',
            focusClass: 'focus',
            responseType: 'json',
            startXHR: start,
            onSubmit: submit,
            onComplete: complete,
            onError: error
        });

when change button: btn, dont work...

example:

var upBTN = document.getElementById('uploadBtn'),
.
.
.
button: upBTN
.
.
LPology commented 8 years ago

Version 2.4 includes a new method called addButton() which you can use to add upload buttons.