How to add "Please Wait" after progress countdown?

The web video script I’m using has an Upload form that works successfully. Upon selecting “Upload” the page shows the Upload progress in % numbers up to 100%, then stays like this Upload Progress 100%" until the page redirects. I believe this is the line of code for the progress in % numbers:

request.upload.onprogress = function (event) {
callback('Upload Progress ' + Math.round(event.loaded / event.total * 100) + "%");
};

How can I display “Please Wait” after it displays “Upload Progress 100%” ?

Any help is appreciated.

Hi @ChrisjChrisj,

I hope the following code helps you out (not tested):

request.upload.onprogress = function (event) {
    var percentage = Math.round(event.loaded / event.total * 100);
    var text = 'Upload Progress ' + percentage + "%";
    if (percentage === 100) {
        text = "Please wait...";
    }
    callback(text);
};

That worked, thank you

Can you tell me how I might style “please wait” in the javascript?

This topic was automatically closed 91 days after the last reply. New replies are no longer allowed.