Upload button works only after second press + Javascript errors

Last post 07-09-2012, 1:18 PM by Kenneth. 3 replies.
Sort Posts: Previous Next
  •  07-02-2012, 11:00 AM 74061

    Upload button works only after second press + Javascript errors

    Hello,
     
    I've been playing around with the Ajax upload control, it is the one in the downloadable package in the "Framework 2.0-Csharp" folder. Especially   I have been testing with Demo 6 "Large file upload", since that is what we want to use it for in our company. I am using the latest Chrome for my testing, and IIS 7 with .NET 4.0 in Integrated Pipeline mode, running on Windows Server 2008.
     
    I have my current progress available as a download from:
     
    The problems I am getting:
      • Failed to load resource: the server responded with a status of 404 (Not Found) http://localhost/upload2/CuteWebUI_Uploader_Resource.axd?type=script&_ver=634750458880000000
      • Failed to load resource: the server responded with a status of 404 (Not Found) http://localhost/upload2/CuteWebUI_Uploader_Resource.axd?type=file&file=continuous.gif
      • Uncaught ReferenceError: CuteWebUI_AjaxUploader_Initialize is not defined
    As it stands now we are not going to use this control further, unless someone can help to solve the problems...
     
     
     
  •  07-03-2012, 7:38 AM 74066 in reply to 74061

    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 
  •  07-05-2012, 8:17 AM 74083 in reply to 74066

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

    Hi Kenneth,
    1. I get the same problem with the default "Simple Upload with Progress" demo.
       I also get the same problem with Internet Explorer, in fact even worse, because after the first click the button becomes disabled, you have to wait for it to become enabled again to do the second click which shows the upload screen.
    2. I don't get the same problem at http://www.ajaxuploader.com/Demo/
       So it must be something with my server installation.
    3. Both example files give me the same errors: I have to press the button twice, and the JavaScript errors are present.
  •  07-09-2012, 1:18 PM 74104 in reply to 74083

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

    Hi antiflu,
     
    Can you send me your uploader page url? So I can check it for you.
     
     
    Regards,
     
    Ken 
View as RSS news feed in XML