Rank: Advanced Member Groups: Member
Joined: 3/18/2008 Posts: 41
|
Hello.
I have some problems understanding how the ajax upload works. How can I hide the progress bar until the user starts uploading the file? By default, the progress bar is disabled, not invisible. I want the progress bar to become visible only during the uploading, and invisible again when the upload process completes.
Thanks in advance.
HT
|
Rank: Administration Groups: Administration
Joined: 5/27/2007 Posts: 24,218
|
Hi,
You will need to edit the uploader's LayoutTemplate to:
1. Remove/hide the default progress bar. Make sure that you hide the progress with DHTML attribute, not by setting its Visible to false; 2. Remove the default Upload button and put in your own upload button; 3. Write JavaScript event handler for your own upload button to trigger the upload by calling the uploader's upload method; 4. Handle the uploader's ClientSideOnProgress event and use JavaScript to update whatever other UI elements you would like to update;
You will need to know JavaScript/DHTML programming well to do this, so it probably won't be worth it if you do not want to get into those. If you are familiar with those, you will find our client API is very useful.
Thanks
|