javascript - Valum's Ajax file uploader - bind to all elements of a given class -


I am trying to use Valum's file upload script () to create a link to upload files .

I am using the jQuery library.

It is easy to use a standard document to get a link on the page, but now instead of specifying all the links in a given class to an element,

My site uses Fothermore Azax Pager so I should be able to upload new AJAX weighted material in some way.

Estimated use to allow an Ajax-loaded page to create a link like this and trigger the uploader:

  & lt; A href = "#" class = "uploader" & gt; Upload file & lt; / A & gt;   

My first idea is to use jQuery's Live () method to attempt to bind the class, but I can not find suitable events to trigger.

Has anyone experienced such a problem?

No, this & lt; Input type = "file" & gt; , Unfortunately due to some security problems, IE (even IE 9!) Does not let you denounce the "effield" form with this element - when 'click', 'change' or Any other event is artificially raised.

This plugin works differently, instead of creating an event handler, the user is clicked on some file input elements created when the 'Reuters' user flies, Is created around the link given in - and the fileinput is inserted right there, it is not enough to see a user - but to register enough clicks for a browser (Check for more details in the source code).

The bottom line is that you can not use the event handling delegation here: The only sensible way is by wrapping the newly-created elements with that plug-in.

Comments