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

  •  02-03-2009, 10:16 PM

    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 Complete Thread