Templating progress bar and buttons?

Last post 10-16-2008, 5:37 AM by cutechat. 1 replies.
Sort Posts: Previous Next
  •  10-15-2008, 3:25 AM 44892

    Templating progress bar and buttons?

    Does the AJAX uploader support templating?
     
    I would like to place the progress bar in a couple of div tags so that I can absolutely position them  in the center of the screen.
     
    Also I would like to change the form buttons with link buttons that contain a label (span), that way I can customise them to look the way I want.
     
    I would be grateful for any feedback or information you can provide.
     
    Kindest regards
     
    Chris
     
  •  10-16-2008, 5:37 AM 44933 in reply to 44892

    Re: Templating progress bar and buttons?

    Hi,
     
    There are some properties on the control that can help you customize the buildin progress bar.
     
    If you want to customize it completely , you need use script to write your own progress bar.
     
    For example
     
    <script>
    function CuteWebUI_AjaxUploader_OnProgress(enable,filename,begintime,uploadedsize,totalsize)
    {
     var hidden=this;
     if(enable)
     {
      if(totalsize)
      {
       document.title=filename+" - "+Math.floor(100*uploadedsize/totalsize)+'%'
      }
      else
      {
      }
     }
     else
     {
     }
     return false; //hide the default ui.
    }
    </script>
     
     
    For more script API information , please check the
     
    Regards,
    Terry
View as RSS news feed in XML