I'm using laravel to develop my web application ,and i have a migration function i want to add a loading bar while the function is running then the loading bar is hidden when the function ends how can i do this.
1 Answer
you can get it from here
http://w3shaman.com/article/php-progress-bar-script
:) or try some other sites http://www.htmlgoodies.com/beyond/php/show-progress-report-for-long-running-php-scripts.html good lucky have fun
2 Comments
Sejda Hajji
Actually i found this solution stackoverflow.com/questions/5245294/… but i still don't know how to use it with laravel 5
Hassan Ali Hashmi
you can use it in b/w <head> tag <script> $("#MyProgressBar").show(); $("#placeholder").load(myurl, function() { $("#MyProgressBar").hide(); }); </script>
.show()of jquery before sending request to the server and thenhide()after the server finished process.