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? Quote Link to comment 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\">"; Quote Link to comment 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. Quote Link to comment 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. Quote Link to comment 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 Quote Link to comment 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 Quote Link to comment 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. Quote Link to comment Share on other sites More sharing options...
newb Posted July 15, 2009 Author Share Posted July 15, 2009 nvmd got it. Quote Link to comment 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. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.