This repository has been archived by the owner. It is now read-only.

File-uploader does not work with html "button" #33

Closed
stz opened this Issue Sep 6, 2010 · 4 comments

Comments

Projects
None yet
4 participants
@stz
Copy link

stz commented Sep 6, 2010

Hello,

I'd like to use a standard html button. So I set up file-uploader this way :

var uploader = new qq.FileUploader({

    // pass the dom node (ex. $(selector)[0] for jQuery users)
    element: document.getElementById('file-uploader'),

    // path to server-side upload script
    action: '/server/upload',

    // UI customizations
    template: '<div class="qq-uploader">' + 
        '<div class="qq-upload-drop-area"><span>Drop files here to upload</span></div>' +
        '<button type="button" class="qq-upload-button">Add files</button>' +
        '<ul class="qq-upload-list right"></ul>' +
        '</div>',
});

But now, when I click the button, nothing happens.

Thx

@valums

This comment has been minimized.

Copy link

valums commented Sep 7, 2010

Hi,

It's not possible to use a standard html button with this uploader, and there is not way to fix this.

@reinink

This comment has been minimized.

Copy link

reinink commented Sep 19, 2012

Hi Ray...just found this plugin yesterday and I'm really impressed!

Just curious, however, why this plugin does not working with standard HTML buttons? I noticed this is only the case with the IFRAME version (IE).

Is it worth mentioning this on the main page? I took me a while to figure the problem out.

@rnicholus

This comment has been minimized.

Copy link
Member

rnicholus commented Sep 19, 2012

@reinink In IE, the button element receives the click event, instead of the child input element.

@reinink

This comment has been minimized.

Copy link

reinink commented Sep 19, 2012

@rnicholus Ahh, right, okay, thanks.

chfsx added a commit to ILIAS-eLearning/ILIAS that referenced this issue Mar 21, 2018

chfsx added a commit to ILIAS-eLearning/ILIAS that referenced this issue Mar 21, 2018

chfsx added a commit to ILIAS-eLearning/ILIAS that referenced this issue Mar 21, 2018

This issue was closed.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.