ballhogjoni Posted January 5, 2009 Share Posted January 5, 2009 Does anyone know how to make a progress bar that outputs to the browser for each percent? So everytime the percent changes the progress bar increases on the users browser? Quote Link to comment https://forums.phpfreaks.com/topic/139552-solved-php-progress-bar/ Share on other sites More sharing options...
kenrbnsn Posted January 5, 2009 Share Posted January 5, 2009 Each percent of what? Ken Quote Link to comment https://forums.phpfreaks.com/topic/139552-solved-php-progress-bar/#findComment-729993 Share on other sites More sharing options...
ballhogjoni Posted January 5, 2009 Author Share Posted January 5, 2009 Doesn't really matter...in my case it would be an amount of records I query from the db. Say 1000 records. edit: so basically you have 100%. Everytime you loop through 1% of the records or in other words 10 records the progress bar increases. Quote Link to comment https://forums.phpfreaks.com/topic/139552-solved-php-progress-bar/#findComment-729997 Share on other sites More sharing options...
dennismonsewicz Posted January 5, 2009 Share Posted January 5, 2009 the best way to do this might be using some sort of Javascript or AJAX, if not the page will have to constantly reload for something to happen Quote Link to comment https://forums.phpfreaks.com/topic/139552-solved-php-progress-bar/#findComment-729998 Share on other sites More sharing options...
ballhogjoni Posted January 5, 2009 Author Share Posted January 5, 2009 I tried ajax, but it didn't output to the screen like I wanted it too Quote Link to comment https://forums.phpfreaks.com/topic/139552-solved-php-progress-bar/#findComment-730005 Share on other sites More sharing options...
dennismonsewicz Posted January 5, 2009 Share Posted January 5, 2009 hmm you could always try a flash progress bar as well... just a suggestion not recommended though Quote Link to comment https://forums.phpfreaks.com/topic/139552-solved-php-progress-bar/#findComment-730006 Share on other sites More sharing options...
Maq Posted January 5, 2009 Share Posted January 5, 2009 You should use Javascript. Have a look at these examples. Quote Link to comment https://forums.phpfreaks.com/topic/139552-solved-php-progress-bar/#findComment-730016 Share on other sites More sharing options...
MatthewJ Posted January 5, 2009 Share Posted January 5, 2009 I tried ajax, but it didn't output to the screen like I wanted it too Try again Ajax is the way Quote Link to comment https://forums.phpfreaks.com/topic/139552-solved-php-progress-bar/#findComment-730041 Share on other sites More sharing options...
premiso Posted January 5, 2009 Share Posted January 5, 2009 imo, Use jQuery. http://t.wits.sg/2008/06/20/jquery-progress-bar-11/ http://plugins.jquery.com/project/jQueryProgressBar The progress bar is basically done for you, just have to tweak it to suit your code. However, if available, flash uploaders are very nice. Quote Link to comment https://forums.phpfreaks.com/topic/139552-solved-php-progress-bar/#findComment-730046 Share on other sites More sharing options...
dennismonsewicz Posted January 5, 2009 Share Posted January 5, 2009 swfupload is a nice uploader... can be kinda cumbersome but i have used it and tweaked it to suit a stock photo site and it worked very nicely Quote Link to comment https://forums.phpfreaks.com/topic/139552-solved-php-progress-bar/#findComment-730053 Share on other sites More sharing options...
Maq Posted January 5, 2009 Share Posted January 5, 2009 There are so many classes already made for almost everything you just need to google, include, and modify. Quote Link to comment https://forums.phpfreaks.com/topic/139552-solved-php-progress-bar/#findComment-730120 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.