Re: Hiding Upload Button while Uploading

  •  07-31-2012, 8:28 AM

    Re: Hiding Upload Button while Uploading

    Hi Killianmcc,
     
    Please try the example below, it shows you how to hide the upload button  in API "CuteWebUI_AjaxUploader_OnSelect" when uploading.
     
    1. <%@ Page Language="C#" %>  
    2.   
    3. <%@ Register Namespace="CuteWebUI" TagPrefix="CuteWebUI" Assembly="CuteWebUI.AjaxUploader" %>  
    4. <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">  
    5. <html xmlns="http://www.w3.org/1999/xhtml">  
    6. <head id="Head1" runat="server">  
    7.     <title>example</title>  
    8. </head>  
    9.   
    10. <body>  
    11.     <form id="form1" runat="server">  
    12.         <CuteWebUI:UploadAttachments ID="uploader1" runat="server">  
    13.         </CuteWebUI:UploadAttachments>  
    14.     </form>  
    15. </body>  
    16. </html>  
    17. <script>  
    18. function CuteWebUI_AjaxUploader_OnSelect(files)  
    19. {  
    20.     var hidden=this;  
    21.     hidden.internalobject.insertBtn.style.display='none';  
    22. }  
    23. </script>  
    Regards,
     
    Ken 
View Complete Thread