newb Posted July 15, 2009 Share Posted July 15, 2009 i have a script taht takes a really long time to complete, i need a php progress bar or animated gif loop or somethign to keep visitors from leaving the site. how do i do this? Link to comment https://forums.phpfreaks.com/topic/166009-solved-php-loading-bar/ Share on other sites More sharing options...
PugJr Posted July 15, 2009 Share Posted July 15, 2009 Okay, get a .gif that is animated with a few frames showing a loading circle of something. Then add this to the page: (We are assuming the image is loading.gif) echo "<img src=\"loading.gif\">"; Link to comment https://forums.phpfreaks.com/topic/166009-solved-php-loading-bar/#findComment-875562 Share on other sites More sharing options...
newb Posted July 15, 2009 Author Share Posted July 15, 2009 yeah i know that, but i want to make it appear on over top of the page, and have the loading page greyed out in the background until the script is completed loading. Link to comment https://forums.phpfreaks.com/topic/166009-solved-php-loading-bar/#findComment-875564 Share on other sites More sharing options...
PugJr Posted July 15, 2009 Share Posted July 15, 2009 That wouldn't be in PHP though, as client and server doesn't communicate outside of page-clicks. Link to comment https://forums.phpfreaks.com/topic/166009-solved-php-loading-bar/#findComment-875567 Share on other sites More sharing options...
timmah1 Posted July 15, 2009 Share Posted July 15, 2009 You can do this with AJAX and PHP. You cannot use strictly PHP for a progress bar http://www.google.com/search?hl=en&safe=off&client=firefox-a&rls=org.mozilla%3Aen-US%3Aofficial&q=php+ajax+progress+bar+upload&aq=2&oq=php+ajax+progre&aqi=g3 Link to comment https://forums.phpfreaks.com/topic/166009-solved-php-loading-bar/#findComment-875570 Share on other sites More sharing options...
newb Posted July 15, 2009 Author Share Posted July 15, 2009 ok well how do i use ajax Link to comment https://forums.phpfreaks.com/topic/166009-solved-php-loading-bar/#findComment-875571 Share on other sites More sharing options...
newb Posted July 15, 2009 Author Share Posted July 15, 2009 i need something like this: http://www.huddletogether.com/projects/lightbox2/ but with a php page instead of an image. Link to comment https://forums.phpfreaks.com/topic/166009-solved-php-loading-bar/#findComment-875572 Share on other sites More sharing options...
newb Posted July 15, 2009 Author Share Posted July 15, 2009 nvmd got it. Link to comment https://forums.phpfreaks.com/topic/166009-solved-php-loading-bar/#findComment-875574 Share on other sites More sharing options...
fanfavorite Posted August 21, 2009 Share Posted August 21, 2009 what did you end up using for this? Looking for a solution myself. Link to comment https://forums.phpfreaks.com/topic/166009-solved-php-loading-bar/#findComment-903576 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.