简体   繁体   中英

How to make dynamic loader using javascript php

I am working on Php, Right now i am getting data from database using multiple queries, In database there maybe be 10 records or maybe 10,000 record, So i want to use progress bar which should show how percentage (%) query complete (estimated time), Because as i said there maybe few records or maybe thousands of record,Is this possible to create dynamic loader (progress bar)?

With ajax, you can get the number of rows and calculete a number to sum to the progressbar, after that you shoud call with other ajax method to a php function which has a query with limit x (this number x shoud be pass by ajax param). After that, in the response of ajax, you can sum the % of the progressbar.

Progressbar bootstrap

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM