I have a page that loads an HTML form via a $.ajax request.
The form has a file upload option. I have tried several Ajax upload plugins and they all require me to instantiate some ajaxUpload() type object which internally creates the click listener. However these listeners dont trigger because the dynamically loaded form is not DOM accessible.
To get around such things in the past I have used live() to listen. But I cant declare these ajaxUpload instances as a live event. So how can I get this upload button to function?
I have solved this by using a different uploader plugin
https://github.com/valums/file-uploader
which allows me to call a function to create an uploader from a DOM element at any desired time. So I can call the function only when I need an uploader. That way I dont need to rely on live events.