Hiding Upload Button while Uploading

Last post 08-07-2012, 11:58 AM by Minisuit. 2 replies.
Sort Posts: Previous Next
  •  07-30-2012, 9:39 AM 74309

    Hiding Upload Button while Uploading

    I've tried using the following;
     
    function CuteWebUI_AjaxUploader_OnStart() {
                 hidden.internalobject.insertBtn.style.display = 'none'
            }
     
     
    But to no avail. Any help would be greatly appreciated.
     
     
    Nevermind, got it working.
  •  07-31-2012, 8:28 AM 74320 in reply to 74309

    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 
  •  08-07-2012, 11:58 AM 74365 in reply to 74320

    Re: Hiding Upload Button while Uploading

    'onProgress'     : function (evt, queueID, fileObj, response, data) {
    $(\"#id1\").empty(this).append(\"<div id=\\"id2\\"> The text you would like to insert while upload started in place of the button </div> \"); 
    }
    });
    Place this to the end of the .uploadify({


    Best Regards,
    Navin Patel-Affiliate Manager
    Minisuit Affiliate Program
    Minisuit DOT com
View as RSS news feed in XML