I'm using the Entry Widgets Add-on and as part of that I'm trying to create a new widget for it which contains a File FieldType. So I'm using the File Field Class which comes with EE to accomplish that, and it's outputting all the right html markup, but what it's not doing is adding the Javascript click event to the Add File
link.
As I understand it so far, this is not happening because each widget is loaded into the page using AJAX and so is loaded after all of the File Browser javascript is executed on DOM Ready.
I guess what I'm after is a straightforward way to either rerun the javascript so the events get added to my newly injected fields, or just recreate the click event itself. Or alternatively, if anyone know of a standalone way of getting the standard CP File browser working in my widget.