Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 9191307
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 17, 20262026-06-17T20:39:11+00:00 2026-06-17T20:39:11+00:00

I have downloaded 1 upload progress bar from here: http://www.malsup.com/jquery/form/progress3.html It’s perfect; anyway, just

  • 0

I have downloaded 1 upload progress bar from here: http://www.malsup.com/jquery/form/progress3.html

It’s perfect; anyway, just when the file is uploaded it gives a status about file, like:

file uploaded in http://mysite.com/1.jpg

However, when a new file is uploaded, the status disappears and details about the new file that has just been uploaded come up.

I want to just have the old status and when a new file is uploaded, the new status just comes up under the old status. How could I do this?

Here’s the code:

(function() {

var bar = $('.bar');
var percent = $('.percent');
var status = $('#status');
$('form').ajaxForm({
beforeSend: function() {
    status.empty();
    var percentVal = '0%';
    bar.width(percentVal)
    percent.html(percentVal);
},
uploadProgress: function(event, position, total, percentComplete) {
    var percentVal = percentComplete + '%';
    bar.width(percentVal)
    percent.html(percentVal);
    //console.log(percentVal, position, total);
},
complete: function(xhr) {
    status.html(xhr.responseText);
}
}); 

})();       
</script>

If you see the demo in the link and understand it well, the status appears inside the HTML that looks like:

 <div id="status"></div>

Thank you!

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-17T20:39:12+00:00Added an answer on June 17, 2026 at 8:39 pm

    Your complete callback is resetting status.html(), AND your beforeSend is emptying status with status.empty();. Remove that line!

    Then try prepending the newest message wrapped in some markup, rather than overwriting the entire contents of status:

    complete: function(xhr) {
        var message = '<div class="new">' + xhr.responseText + '</div>';
        status.prepend(message);
    }
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have downloaded the two releases of python 2.6.8 from here http://www.python.org/getit/releases/2.6.8/ and I
I have VHD file (actually downloaded from Microsoft: http://www.microsoft.com/betaexperience/pd/BIVHD/enus/ ). I want ot run
So I have this plugin http://www.myjqueryplugins.com/jRating I downloaded it and tried it on a
because i want to have smarter upload in my site, i downloaded gwtupload-samples-0.6.1 from
I have a desktop application that needs to upload/download images to/from service computer over
I have downloaded follwing code from one of Google Codes but problem is in
I have downloaded SWFUpload, in hoping to create the functionality to upload large files
I have successfully downloaded an sqlite datafile from my testing app on my provisioned
I'm using a plugin from jquery to use a multiple file upload to create
i want to launch picas app which i have downloaded on my emulator, from

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.