Process files in a directory with jquery and php - fetch status and update progressbar
I want to show dynamically 开发者_开发百科the current state (image x of y) using jquery and jquery ui (progressbar, ajax?)
I already know how to read a directory, the files and also save them to the database.
How can i fetch the status of the request and update the progressbar?
solved this with smartupdater and some php and jquery ui
"Image x of y" means that you would like to implement "paging". In other words, when you have image 3 displayed and user clicks next, you want the image 4 to be loaded. This as other said, is a lot. But you can send the Id (any unique number) of the current image to the server, find the next image, send it back to the browser (this could be all done in ajax), and then update the progress bar based on the percentage of the position of the current image in number of all images.
精彩评论