Manual upload with visible="false"

  •  11-12-2012, 7:34 AM

    Manual upload with visible="false"

    Hello

     

    I have script below for uploading files. But, if i will set to element "fileinput1" attribute Visible="false", uploading doesn't work for any element with attribute Visibility="true".

     

    1. function submitbutton_click() {  
    2.   
    3.             var submitbutton = document.getElementById('<%=SubmitButton.ClientID %>');  
    4.   
    5.             var fileInputs = ["<%=fileinput1.ClientID%>""<%=fileinput2.ClientID%>""<%=fileinput3.ClientID%>"];  
    6.   
    7.             if (!window.filesuploaded)  
    8.             {  
    9.                 for(var i=0; i<3; i++) {  
    10.   
    11.                     var uploadobj = document.getElementById(fileInputs[i]);  
    12.                     if (uploadobj.getqueuecount() > 0)  
    13.                     {  
    14.                         uploadobj.startupload();  
    15.                     }  
    16.                 }  
    17.                 return false;  
    18.             }  
    19.               
    20.             window.filesuploaded = false;  
    21.             return true;  

View Complete Thread