Skip to content Skip to sidebar Skip to footer

Adding Progress Bar For File Being Downloaded Using Phonegap And Jquery

I am trying to have a progress bar for download operation. Here is my code. I am not able to set the value in the progress bar even though i m able to get the value
Copy

does not work ?

This may be the correct syntax to update your progressbar:

$("#progressbar").progressbar({
    value: 35
});

According to this (and plenty more infos). You may try also another way.

Solution 2:

I just tested this and this should work for you:

var ft = newFileTransfer();
                $("#progressbar").show();
                ft.onprogress = function(progressEvent) {

                perc = Math.floor((progressEvent.loaded / progressEvent.total) * 100);

                $("#progressbar").progressbar({value:perc}); //changed this line

                }

Post a Comment for "Adding Progress Bar For File Being Downloaded Using Phonegap And Jquery"