Live Support, Chat, Upload Control and Rich Text Editor
Welcome to Support forums Sign in | Join | Help |Client Center
in Search

JavaScript error during upload

Last post 04-14-2009, 8:20 AM by cutechat. 10 replies.
Sort Posts: Previous Next
  •  04-08-2009, 5:45 AM 50873

    JavaScript error during upload

    Hello,
     
    I've include the AjaxUploader into my Project like the demo multiple-files-upload.aspx. I see all elements and if I click the "Upload multiple files now"-Button I get a file selection box. After I select some files here and press OK, I get a message box from IE with:

    A runtime error occured.
    Should the debug mode be start?

    Line: 1
    Error: The object does not support this property or method.

    (Please note, that the error message is translated by me from german to english, so the original english message box can contain other text).
     
    If I press the Yes-Button and the debugger starts, I see a big line JavaScript, only with Hex-Values instead of variable- or functionnames.
     
    Whats wrong here?
    I use W2K-SP4, .NET1.1, VS2003
     
    Many thanks
    Stephan
  •  04-08-2009, 12:48 PM 50886 in reply to 50873

    Re: JavaScript error during upload

    Stephan,
     
    Can you try the following code 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

  •  04-09-2009, 2:59 AM 50909 in reply to 50886

    Re: JavaScript error during upload

    Hello Adam,
     
    I try your code snippet and I get the same error after OK-Button in file selection box.
     
    Stephan
  •  04-09-2009, 3:09 AM 50910 in reply to 50909

    Re: JavaScript error during upload

    Stephan,
     
    What version of IE did you test ? Did you try the Firefox or Chrome ?
     
    Reagards,
    Terry
     
  •  04-09-2009, 3:44 AM 50913 in reply to 50910

    Re: JavaScript error during upload

    I use IE 6.0.2800.1106 SP1
     
    Please note: It's senseless for me to test it on other browsers, because our product support only IE and our customers use only IE beginning with version 5.5.
  •  04-10-2009, 8:03 AM 50975 in reply to 50913

    Re: JavaScript error during upload

    Hi,
     
    We can't reproduce error on IE6. Can you try these things ?
     
    1. Make sure you are using the last version.
     
     
    3. Please try use google Chrome on your website.
     
    So that we can know the reason and fix it.
     
    Regards,
    Terry
  •  04-13-2009, 5:24 AM 51017 in reply to 50975

    Re: JavaScript error during upload

    I'll try it tomorrow. Sorry for my late post, but it's eastern.
  •  04-14-2009, 6:24 AM 51062 in reply to 51017

    Re: JavaScript error during upload

    So. Problem solved after a long try and error session:
     
    I have a hidden element called "action" in my existing page. Can it be, that the AjaxUploader generate a element with this name too? Because after remove my hidden action element, all works fine.
     
    I think it's a good idea, if you create a list with forbidden names in the documentation to prevent such things in future.
     
    But maybe you can help on some other questions:
    1.
    I found the Attribute "CancelAllMsg" to set the value of the Cancel-All-Button, but the Attribute "CancelUploadMsg" has no effect to the Cancel-Button. (I have no Buttons in my code, the buttons are generated by you). Whats wrong? Better is, if I can suppress all Cancel-Buttons.
     
    2.
    How I can remove the table with the filenames from server side after upload all files are complete?
     
  •  04-14-2009, 7:30 AM 51065 in reply to 51062

    Re: JavaScript error during upload

    Hi,
     
    your 'action' input field will override the form.action property. I think we need use form.getAttribute("action") for the new code..
     
    1. If you only modify the attribute CancelUploadMsg it's not useful , because the cancel button is rendered as an real button. and be attached as the CancelButtonID
     
    2. If you are using UploadAttachments , it will hold the list . You can use DeleteAllAttachments to remove them after you processing them.
     
    Regards,
    Terry
  •  04-14-2009, 8:06 AM 51068 in reply to 51065

    Re: JavaScript error during upload

    Hello Terry,
     
    Thank you for your comment, but the DeleteAllAttachment call does'nt work. I use this method in a overload PreRender-Event (I take this solution from an other thread to detect, if the upload process is finished), but the filelist is not cleared. In debugger I see, that the .Items.Count Member is set to zero and .GetAttachmentCount () returns zero too. But there is no refresh of the control.
     
    How I can suppress all Cancel-Buttons?

    Regards and thanks
    Stephan
  •  04-14-2009, 8:20 AM 51069 in reply to 51068

    Re: JavaScript error during upload

    Stephan ,
     
    I don't know why the DeleteAllAttachment not work on your app.
     
    for the cancel button, you can set
     
    uploader.CancelButton.CssClass="HideButton"; and use css to hide it:
     
    .HideButton
    {
        display:none!important;
    }
     
    Regards,
    Terry
     
View as RSS news feed in XML
Powered by ASP.Net
Copyright 2003 - 2017 CuteSoft Components Inc.. All rights reserved.