Skip to content
View in the app

A better way to browse. Learn more.

Web Designer Forum

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

jQuery Progress Bar

Featured Replies

I assume this is possible, but I thought I'd check anyway...

 

Basically I have a PHP file which when loaded displays a form, user selects an item from a list and clicks the submit button, the PHP script generates a CSV file for the user to download.

 

Because the contents of the CSV file are going to be populated from a database, I want to show a jQuery progress bar when the user clicks on the submit button and I want it to disappear when the 'save file as' box comes up in their browser.

 

Any help would be appreciated!

 

Thanks

  • Author

17 views and no replies... Surely SOMEONE must have done this?

Hi Sam G

 

Just wondering how much data you're exporting into your CSV? The reason I ask is because I've recently done this for a project (the user can export leads that have been submitted between specified dates, or all leads in the database), and it doesn't take anywhere near enough time to warrant a progress bar... Maybe 1/1.5 second(s).

 

I'm not 100%, but I don't think there is a standard method in PHP to return the status of a file upload/download. Someone please correct me if I'm wrong :)

 

BenTheDesigner

  • Author

Well at the moment only a few rows but could potentially be 1000s of rows of data.

 

Just want to display a progress bar so the user doesn't think their connection to the server was lost or anything.

Hi Sam G

 

I'm going to have a think about this one because there are a couple of projects I'd really like to do this for... Only thing is, I've tested the time it takes to export around 3000 rows to CSV and it only took a couple of seconds. Will update if I manage to find anything :)

 

BenTheDesigner

Create an account or sign in to comment

Account

Navigation

Search

Search

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.