queue table question

Last post 03-16-2010, 7:36 AM by wassimsa. 8 replies.
Sort Posts: Previous Next
  •  09-01-2009, 12:32 PM 55255

    queue table question

    I am testing the ajaxuploader and was wondering if there is a way to prevent the queue table from disapearing once the uploads are completed? We are wanting to provide the fileuploaded information as each file completes its upload rather than as a summary when all of them are complete.
     
     
     
    thanks...Steve
  •  09-01-2009, 12:51 PM 55257 in reply to 55255

    Re: queue table question

    Steve,
     
    You can use CuteWebUI:UploadAttachments.
     
    Demo:
     
     
    The source code of this example can be found in the download package.

    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

  •  09-01-2009, 3:28 PM 55263 in reply to 55257

    Re: queue table question

    it's not quite what I am looking for, it appears to redraw the queue table adding in the checkbox and remove link so that any changes I would make to the queuetable as it's being generated would be lost.
  •  09-01-2009, 8:10 PM 55267 in reply to 55263

    Re: queue table question

    Hi,
     
    You can also check this document :
     
     
    The queue table is client state.
     
    After the file uploaded , the page will postback to server and fire the FileUploaded event.
     
    You can use MS-Ajax or other Ajax tool to submit the data via XMLHttp
     
    Otherwise the client side state will lost .
     
    Please check this to get the client side API :
     
     
    Regards,
    Terry
     
  •  09-02-2009, 1:10 PM 55317 in reply to 55267

    Re: queue table question

    Thanks,
     
    There is some serverside stuff I wanted to try like creating a thumbnail and placing it in the queuetable as each upload was completed or display an icon for the document type.  I have webservices working with the  handlequeueui event now and basically generate my own queuetable.  While I haven't wired in any image processing yet, it looks promising.  For now I am using a hidden field to save the last queuetable returned  and just display it again after the postback.
  •  09-02-2009, 10:56 PM 55330 in reply to 55317

    Re: queue table question

    Hi,
     
    I do not understand which table you want to show .
     
    There's two tables of the Uploader :
     
    1 - client table , the queueui
     
    2 - server table , the UploadAttachments control render the control.Items
     
    Regards,
    Terry
  •  03-15-2010, 12:45 PM 59405 in reply to 55330

    Re: queue table question

    Hello,
    I am looking for something similar, I would like to keep the queueui table visible after a post back or alternatively, I would like to show a table that contains all teh uploaded files and any failed files,
    The queueUI table would display an error icon if a file failed to upload, however after the upload is compelete for all teh files I do not see any failed files, how do I show a summary of the uploaded files and the none uploaded ifles(i.e exactly what the queueui table does)
    Thank you
  •  03-15-2010, 9:05 PM 59414 in reply to 59405

    Re: queue table question

    Hi,
     
    Because the upload status is JavaScript data.
     
    So if you are not using AJAX, it's hard to do.
     
    If you use AJAX, like MICROSOFT-AJAX
     
    You need write code to handle the OnQueueUI event,
     
    And show the table outside the UpdatePanel
     
    Regards,
    Terry
     
  •  03-16-2010, 7:36 AM 59420 in reply to 59414

    Re: queue table question

    I am using the script below, but that is not displaying the table that shows while uploading it displays an unformamated html table as follows
    index.html Upload Upload
    index1.html Queue Cancel
    index2.html Queue Cancel
    index.txt Queue Cancel
                                 Cancel all tasks.

    <script>

    var uploader=document.getElementById("<%=UploadAttachments1.ClientID %>");

    uploader.handlequeueui=myqueueuihandler;

     

    function myqueueuihandler(list)

    {

     

    var table;

    if(list.length<2)

    {

    document.getElementById("queuediv").style.display="none";

    }

    else

     

    {

    document.getElementById("queuediv").style.display="";

    var container=document.getElementById("queuedivtablecontainer");

    container.innerHTML="";

     

    table=document.createElement("table");

    table.style.borderCollapse="collapse";

    table.cellSpacing=0;

    table.cellPadding=4;

    table.border=1;

    table.borderColor="darkgreen";

     

    for(var i=0;i<list.length;i++)

    {

    var name=list[i].FileName

    var size=list[i].FileSize // (or -1)

     

    var stat=list[i].Status // Finish|Error|Upload|Queue

     

    var func=list[i].Cancel;

    var row=table.insertRow(-1);

    row.insertCell(-1).innerHTML=name;

    row.insertCell(-1).innerHTML=stat;

    var last=row.insertCell(-1);

    if(stat=="Queue")

    {

    var btn=document.createElement("A");

    btn.href="BLOCKED SCRIPTvoid(0)";

    btn.onclick=func;

    btn.innerHTML="Cancel";

    last.appendChild(btn);

    }

    else

     

    {

    last.innerHTML=stat;

    }

    }

    container.appendChild(table);

     

     

     

    }

    return false; //hide the default;

     

     

    }

     

    function cancelalltasks()

    {

    uploader.cancelall();

    }

     

    </script>

     

View as RSS news feed in XML