How to force progress bar for post upload processing?

Last post 02-03-2009, 10:16 PM by cutechat. 3 replies.
Sort Posts: Previous Next
  •  12-10-2008, 5:17 PM 46790

    How to force progress bar for post upload processing?

    I'm uploading fine with this component and the progress bar is appearing. However, as soon as I upload a file I dump it into a Stream object and process the Stream to an external site.
     
    How can I make the progress bar reappear while the Stream is processing?
     
    thanks,
     
    Steve
  •  12-11-2008, 9:11 AM 46812 in reply to 46790

    Re: How to force progress bar for post upload processing?

    Steve,
     
    Progress bar only appears while the file is uploading. After file uploading, you have to write you own progress bar while processsing the stream to the external files.

    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

  •  01-30-2009, 2:34 PM 48242 in reply to 46812

    Re: How to force progress bar for post upload processing?

    Any advice or sample code on how best to do this?
  •  02-03-2009, 10:16 PM 48337 in reply to 48242

    Re: How to force progress bar for post upload processing?

    Hi,
     
     
    You can try this code :
     
    <script type="text/javascript">
     var internalobj;
     var hasprogress=false;
     function ShowProgress()
     {
      if(!internalobj)return;
      function ShowIt()
      {
       internalobj.progressCtrl.style.display="";
       internalobj.progressText.style.display="";
       //if(internalobj.progressText.firstChild.nodeName!="TABLE")
       if(!hasprogress)
       {
        internalobj.progressText.innerHTML="<table border='1' cellspacing=0' cellpadding='1' style='width:360px;border-collapse:collapse;border:1px solid #999999;'><tr><td>Please select a file</td></tr></table>";
       }
      }
      ShowIt();
      setTimeout(ShowIt,10);
     }
     function CuteWebUI_AjaxUploader_OnInitialize()
     {
      internalobj=this.internalobject;
      ShowProgress();
     }
     function CuteWebUI_AjaxUploader_OnStart()
     {
      ShowProgress();
     }
     function CuteWebUI_AjaxUploader_OnStop()
     {
      ShowProgress();
     }
     function CuteWebUI_AjaxUploader_OnProgress(enabled)
     {
      hasprogress=enabled;
      ShowProgress();
     }
     function CuteWebUI_AjaxUploader_OnQueueUI()
     {
      ShowProgress();
     }
     </script>
     
    Regards,
    Terry
     
     
View as RSS news feed in XML