Javascript functions

Last post 02-07-2011, 10:57 PM by meti. 2 replies.
Sort Posts: Previous Next
  •  02-07-2011, 2:44 AM 66092

    Javascript functions

    Hi,
     
    1. How to I prevent from displaying the list of files that have been canceled? I mean all files that their status is "Error". 
     
    2. Also how do I get access to the list of files already in queue? I need this so I can remove some files based on some conditions.
     
    3. Where can I find the list of JavaScript methods and properties that the uploader supports? For example: uploadobj.getqueuecount(), uploadobj.startupload(), etc.
     Thanks
     
  •  02-07-2011, 4:40 PM 66103 in reply to 66092

    Re: Javascript functions

    Dear meti,
     
    1. How to I prevent from displaying the list of files that have been canceled? I mean all files that their status is "Error". 
    Please try the following code:
    <%@ Page Language="C#" %>
    <%@ Register Namespace="CuteWebUI" Assembly="CuteWebUI.AjaxUploader" TagPrefix="CuteWebUI" %>
    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
    <html xmlns="http://www.w3.org/1999/xhtml">
    <head id="Head1" runat="server">
        <title>Uploading multiple files like GMail</title>
        <style type="text/css">
            .AjaxUploaderQueueTable
            {
                display: none;
            }
        </style>
    </head>
    <body>
        <form id="form1" runat="server">
        <CuteWebUI:UploadAttachments MultipleFilesUpload="true" InsertText="Upload Multiple files Now"
            runat="server" ID="Attachments1">
        </CuteWebUI:UploadAttachments>
        </form>
    </body>
    </html>
    2. Also how do I get access to the list of files already in queue? I need this so I can remove some files based on some conditions.
     You can refer to http://ajaxuploader.com/Demo/multiple-files-upload.aspx , you will can remove some files after upload is finished.
     
    3. Where can I find the list of JavaScript methods and properties that the uploader supports? For example: uploadobj.getqueuecount(), uploadobj.startupload(), etc.
     
    Thank you for asking
  •  02-07-2011, 10:57 PM 66107 in reply to 66103

    Re: Javascript functions

    Hi Eric,
     
    1. I guess I wasn't clear enough on my first question. All I want to do is just hide the list of canceled files but still display the other files (e.g., files in the queue waiting to be uploaded).
    For example: let's say I select a large file to upload and I cancel it while the upload is in the middle. That file will show up in the list as canceled. Then I select another file to be uploaded. Now, I have two files in that table: one canceled and one waiting to be uploaded . Again, all I need to do is just hide the one that is canceled but still display the one that is waiting to be uploaded.
     
     Thanks!
View as RSS news feed in XML