Java script error is displayed while clicking cancel all uploads

Last post 12-11-2009, 8:55 PM by cutechat. 6 replies.
Sort Posts: Previous Next
  •  10-29-2009, 6:59 AM 56775

    Java script error is displayed while clicking cancel all uploads

    Hi,
     
    I am getting a JavaScript error while clicking on "Cancel All Upload" button while the Ajax Uploader is uploading images. The JavaScript error says "
    <script type='text/javascript'>if(window.parent.currentUpload)window.parent.CurrentUpload.UploadOK('TopicFilesImage_1256709336585_1','e5f9d43a-3fbc-59d5-35a6-6287a8b7b16c','')</script>"
     
    Please let me know how to rectify it.
     
    Thanks,
    Jagan
  •  10-29-2009, 10:10 AM 56787 in reply to 56775

    Re: Java script error is displayed while clicking cancel all uploads

    Jagan,
     
    Please try the following example and get back to me:
     
    1. <%@ Page language="c#"%>  
    2. <%@ Register Namespace="CuteWebUI" Assembly="CuteWebUI.AjaxUploader" TagPrefix="CuteWebUI" %>  
    3. <html>    
    4. <head>  
    5. </head>  
    6. <body>  
    7.     <form id="Form1" method="post" runat="server">  
    8.     <CuteWebUI:Uploader runat="server" MultipleFilesUpload="true" ID="Uploader1">  
    9.     </CuteWebUI:Uploader>    
    10.     </form>  
    11. </body>  
    12. </html>  

    asp.net Chat http://cutesoft.net/ASP.NET+Chat/default.aspx
    Web Messenger: http://cutesoft.net/Web-Messenger/default.aspx
    asp.net wysiwyg editor: http://cutesoft.net/ASP.NET+WYSIWYG+Editor/default.aspx
    asp wysiwyg html editor: http://cutesoft.net/ASP
    asp.net Image Gallery: http://cutesoft.net/ASP.NET+Image+Gallery/default.aspx
    Live Support: http://cutesoft.net/live-support/default.aspx

  •  10-30-2009, 4:51 AM 56813 in reply to 56787

    Re: Java script error is displayed while clicking cancel all uploads

    Hi,
     
    Thanks for your reply.
    I tried this but still I am getting that JavaSript error. I am not getting it every time when I click "Cancel All upload" button. But third or fourth time if I do i get that
     
    Thanks,
    Jagan
  •  10-30-2009, 11:05 AM 56822 in reply to 56813

    Re: Java script error is displayed while clicking cancel all uploads

    Jaganr012:
    Hi,
     
    Thanks for your reply.
    I tried this but still I am getting that JavaSript error. I am not getting it every time when I click "Cancel All upload" button. But third or fourth time if I do i get that
     
    Thanks,
    Jagan
     
    It is very strange.
     
    Which version of uploader are you using?
     
    Can you reproduce the problems in the following example?
     
    2. Selecting multiple files for upload
    Ajax Uploader 2.0 allows you to select multiple files and upload multiple files at once.

    asp.net Chat http://cutesoft.net/ASP.NET+Chat/default.aspx
    Web Messenger: http://cutesoft.net/Web-Messenger/default.aspx
    asp.net wysiwyg editor: http://cutesoft.net/ASP.NET+WYSIWYG+Editor/default.aspx
    asp wysiwyg html editor: http://cutesoft.net/ASP
    asp.net Image Gallery: http://cutesoft.net/ASP.NET+Image+Gallery/default.aspx
    Live Support: http://cutesoft.net/live-support/default.aspx

  •  11-02-2009, 9:06 AM 56842 in reply to 56813

    Re: Java script error is displayed while clicking cancel all uploads

    Jagan ,
     
    What browser are you testing ?
     
    Can you test more kinds of browsers ?
     
    That error message is fired when the script which the server return is not be executed.
     
    Regards,
    Terry
  •  12-11-2009, 8:37 AM 57704 in reply to 56842

    Re: Java script error is displayed while clicking cancel all uploads

    I have the same problem.
     
    On server side I have some code-behind parsing the uploaded file and storing the result in our database. This usually takes a total duration of 5 seconds. This is done in the method that's set for OnFileValidating.
    I think that the return of this postback is causing the unknown result error and I cant get rid of it.
     
    If I press CancelAllTasks button which calls uploader.cancelall() there's a very big chance the current file being uploaded is being Validated server-side. So I basically get the error everytime.
     
    I hope this helps with reproducing the error?
     
    Its not a real error popup, but an alert I believe and it happens in both IE as in Firefox.
    I use version 3.0.0.0.
  •  12-11-2009, 8:55 PM 57713 in reply to 57704

    Re: Java script error is displayed while clicking cancel all uploads

    Hi,
     
    We have fixed this issue.
     
    Please download it again at next monday.
     
    Regards,
    Terry
     
View as RSS news feed in XML