Re: Programmatically start download

  •  04-24-2009, 3:50 AM

    Re: Programmatically start download

    Hi Terry,
    thank you for your answere.
     
    Yes, I'm using AJAX (my Uploader is inside an UpdatePanel). I've tried to use your suggestion, I'm not an expert in javascript but I've created this function (UploadAttachmentFile is the ID of my Uploader, is It correct?):
     

    function StartMyUploadFile() {

       var uploader = document.getElementById(UploadAttachmentFile);

       if (uploader.getqueuecount() > 0) {

          uploader.startupload();

       }

    }

    Then I've abbined this function on the "javascript" event of my menu:
     
    <NineRays:FlyMenuItem CommandName="AggiungiFile" Text="Aggiungi File" AutoPostBack="True" Javascript="StartMyUploadFile" />
     
     
    ... but it doesn't work!
     
    Mybe I'm wrong somethings in the code?
     
     
     
     
View Complete Thread