Howdy, Stranger!

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

Call uploadifyUpload()
  • Hi Guys,
    I am trying to use uploadify plugin in my asp.net project.
    My html fileupload controls are created at runtime.So I have added then a Class attribute 'uploadable'.


    $(document).ready(function() {

    var fileID = $("#ctl00_ContentPlaceHolder1_ctl04_hdnPhotoId").val();


    //$('#file_upload').uploadify({
    $('.uploadable').uploadify({

    'uploader' : 'Uploadify/uploadify.swf',

    'script' : 'Uploadify/Handler1.ashx?fileName=' +fileID,

    'cancelImg' : 'Uploadify/cancel.png',

    'folder' : 'Images',

    'auto' : false,

    'onSelect' : function(event,ID,fileObj) {
    $("#ctl00_ContentPlaceHolder1_ctl04_hdnpicSelected").val('' + fileObj.name + '');
    }

    });

    });



    I need to call uploadify function from other javascript function.

    function call()
    {
    // $('#file_upload').uploadifyUpload(); this works when I was using single control
    $('.uploadable').uploadifyUpload(); //Not working
    }

    What should I do here?Pls let me know.
  • How can I delete this questions
  • The user and all related content has been deleted.