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

  • Home
  • SEARCH
  • 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 3288428
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 17, 20262026-05-17T20:36:24+00:00 2026-05-17T20:36:24+00:00

I have a classifieds website, and when posting a new ad, users may chose

  • 0

I have a classifieds website, and when posting a new ad, users may chose to upload pictures.

Currently, the form on the page submits to itself whenever a file is chosen, and then PHP uploads the actual file, which is then lastly displayed to the user.

I use javascript to set some hidden-inputs on the page, and then submit the form to itself:

if (action!='remove'){
document.getElementById("pic_nr").value=nr;
document.getElementById("total_pics").value=nr;
document.getElementById("pic_action").value='upload';
var form = document.forms['ad'];
form.action='new_ad.php';
    form.submit();
}

Then in PHP, it processes and uploads the image (which takes some time) and after its done the image is displayed in the same form.

Now I need to have a progress bar of some kind, which shows the user that the server is actually DOING something.

Because uploading a standard 2,5MB file from a digital-camera takes some time (around 10s), and usually the user doesn’t understand that “something is happening” in the background.

Is there any standard reliable, cross-browser solution to add a loading bar with either JS or PHP, or even maybe both combined?

Any tips and ideas are appreciated.

Thanks

  • 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-05-17T20:36:24+00:00Added an answer on May 17, 2026 at 8:36 pm

    This site seems to have a pretty comprehensive list of tutorials with various approaches. JQuery to me would seem to be the best option to go with as it usually is pretty reliable between browsers and platforms.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have a classifieds website, and when posting a new classified users fill out
I have a classifieds website... As you might imagine, as a webmaster (administrator) I
I am about to finish up my dynamic classifieds website (php) and have some
I have to implement a bad words filter on my website, which is a
I have a mysql database which I support using phpMyAdmin. The website this is
I have several mysql tables in a database. Currently I am doing finishing test
I have come across this website: http://www.fetchak.com/ie-css3/ It seems to work when I enter
I'm working on displaying a page of classifieds in table rows. The problem I'm
I have document scanning system where several types of documents are scanned. Initially, the
So I have got my Maven build deploying both Java5 and Java6 versions to

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.