How can i fire the client script on progress bar ?

Last post 03-13-2013, 12:05 PM by Kenneth. 3 replies.
Sort Posts: Previous Next
  •  03-12-2013, 7:43 AM 77022

    How can i fire the client script on progress bar ?

    I want when there is progress bar div is showing then i want to fire some javascript script which shows some other images in listview and when that progress bar get disappear then that images also get disappear from listview.
  •  03-12-2013, 12:07 PM 77027 in reply to 77022

    Re: How can i fire the client script on progress bar ?

    Hi ritish,

     

    You can achieve it in API "CuteWebUI_AjaxUploader_OnProgress".

     

    1. //Fires when new information about the upload progress for a specific file is available.  
    2. function CuteWebUI_AjaxUploader_OnProgress(enable,filename,begintime,uploadedsize,totalsize)  
    3. {  
    4.     var hidden=this;  
    5.     if(enable)  
    6.     {  
    7.        if(totalsize)  
    8.        {  
    9.          document.title=filename+" - "+Math.floor(100*uploadedsize/totalsize)+'%'  
    10.        }  
    11.        else  
    12.        {  
    13.        }  
    14.     }  
    15.     else  
    16.     {  
    17.     }  
    18.     return false//hide the default UI.  
    19. }  
     

    Regards,

     

    Ken 

  •  03-12-2013, 12:43 PM 77030 in reply to 77027

    Re: How can i fire the client script on progress bar ?

    Thanks for reply.

    But where this function has to be call on jaaxuploader???? or simply put this in clientscript?? 

  •  03-13-2013, 12:05 PM 77036 in reply to 77030

    Re: How can i fire the client script on progress bar ?

    Hi ritish,

     

    Just need to put it into your page, it will fire automatically.

     

    Regards,

     

    Ken 

View as RSS news feed in XML