Re: Upload button works only after second press + Javascript errors

  •  07-03-2012, 7:38 AM

    Re: Upload button works only after second press + Javascript errors

    Hi antiflu,
     
    Do you get the same problem with the default demo? Does it only happens on your own page?
     
    Do you get the same problem(needs double click to to open the dialog) on demo http://www.ajaxuploader.com/Demo/select-multiple-files-upload.aspx ?
     
    #1 the javascript errors
     
    Please create an example page name "example.aspx" with the code below under your test site and access it by the full url like http://localhost/upload2/example.aspx, does it get the same javascript error?
     
    1. <%@ Page Language="C#" %>  
    2.   
    3. <%@ Register TagPrefix="CuteWebUI" Namespace="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. <body>  
    10.     <form id="form1" runat="server">  
    11.         <CuteWebUI:UploadAttachments ID="uploader1" runat="server">  
    12.         </CuteWebUI:UploadAttachments>  
    13.     </form>  
    14. </body>  
    15. </html>  
     
    #2 When I press the "Upload" button once, it doesn't work. Only the second time it works.
     
    Please try the example page below, does it get the same problem? 
    1. <%@ Page Language="C#" %>  
    2.   
    3. <%@ Register TagPrefix="CuteWebUI" Namespace="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. <body>  
    10.     <form id="form1" runat="server">  
    11.         <div style="visibility: hidden" id="div1">  
    12.             <CuteWebUI:UploadAttachments ID="uploader1" runat="server">  
    13.             </CuteWebUI:UploadAttachments>  
    14.         </div>  
    15.         <script>  
    16.             function CuteWebUI_AjaxUploader_OnInitialize()  
    17.             {  
    18.                 var div1=document.getElementById("div1");  
    19.                 div1.style.visibility="";  
    20.             }  
    21.         </script>  
    22.   
    23.     </form>  
    24. </body>  
    25. </html>  
     
    Regards,
     
    Ken 
View Complete Thread