Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

Uploadify on live Input
  • Hello!

    I'm having some trouble getting uploadify to work on a live Input element. Basically, I'm using AJAX to generate a form that has a input[type=file] included. I am unsuccessful at invoking uploadify on this live element. Here is my code:


    $.post(
    '_controllers/projects.php',
    {action: "get_project", id: project_id},
    function(data) {
    var title = "<h2>Modify the details for this project and click Update to save any changes.</h2>";
    $("#edit-project").html(title + data);

    $("#upd_proj_files").uploadify({
    'uploader' : '/_js/uploadify/uploadify.swf',
    'cancelImg' : '/_js/uploadify/cancel.png',
    'script' : '/_controllers/files.php'
    });
    }
    );


    This code does not work. If I pull the exact uploadify code out of $.post and call it during document ready instead, it works fine, but as soon as it's being used on a live element, it no longer work. FireBug doesn't show any errors in the console, so I'm confused as to what I'm doing wrong. I haven't found anything that's alluded to a solution, so any help would be greatly appreciated!
  • Wellll....

    No idea what happened, but it's all the sudden working. All I can think of is my code was correct, but I didn't clear my cache before spending 30 minutes pulling my hair out. Disregard.