Members

Blog Posts

 

infotmic flytouch 3 downloads


Name: infotmic flytouch 3 downloads
Category: Soft
Published: rokicepneu1981
Language: English

 


 


 

 

 

 

 

 

 


 


 


 


 


 


 


 


 


 


 


 


 


 


 


 


 


 

AJAX progress bar of load script.
April 2019.
533 time.
I got big problem to make a progress bar in ajax. Whole page is in ajax, inside one of the webpage is ajax wich load a function to get some big rows from database. I tried to make progress bar in this script in foreach loop a flush() method and by writing/reading to $_SESSION, but still nothing, i realy try everything I don`t know how to do this. Need only this to complete my project. Could someone help me with this ? It is anyway wich script i wanna load, how is the template for this progress bar to use it in GET or POST ajax, for any AJAX.
AND HERE A GETRESULTS.PHP.
AND A GET PROGRESS FUNCTIOn LISTEN.PHP.
3 answers.
Take a look at Server Side Events or Long polling as options.
Writing and reading session doesn't work because the standard behavior of PHP is to lock the session file while your main code is being executed.
Try to create a file and update the its content with the percentage done during the execution of your function. Something like:
You can't get the progress of the data download from ajax. Once you request you to the server, the next response will be only after fetching the data or when the error occurs.
The solution to you is, get the data as fractions. Such as first download the 1/10th of the data, and in the success callback, recursively call the ajax again requesting the 2/10th data. On each success callback, you could change the progress bar.

http://stefexnotun1984.eklablog.com/icq-skins-playboy-downloader-a1...

Views: 1

Comments are closed for this blog post

© 2024   Created by PH the vintage.   Powered by

Badges  |  Report an Issue  |  Terms of Service