PHP Classes

All of the PHP is a just a waist, this could easily be simpli...

Recommend this page to a friend!

      cssProgressBar  >  All threads  >  All of the PHP is a just a waist,...  >  (Un) Subscribe thread alerts  
Subject:All of the PHP is a just a waist,...
Summary:Package rating comment
Messages:6
Author:Evan Byrne
Date:2008-07-13 12:52:45
Update:2008-07-16 17:37:12
 

Evan Byrne rated this package as follows:

Utility: Insufficient
Consistency: Not sure
Examples: Sufficient

  1. All of the PHP is a just a waist,...   Reply   Report abuse  
Picture of Evan Byrne Evan Byrne - 2008-07-13 12:52:46
All of the PHP is a just a waist, this could easily be simplified by just using CSS. The big problem I have is that it isn't really a progress bar it is just a moving background image that "looks" like a progress bar.

  2. Re: All of the PHP is a just a waist,...   Reply   Report abuse  
Picture of Sean Dempsey Sean Dempsey - 2008-07-14 03:55:33 - In reply to message 1 from Evan Byrne
You are exactly right. This is not a "true" progress bar. It is merely meant to visualize the "progress" of a particular item. For example "used filespace / total" or "eggs eaten / a dozen"

And, yes, obiously you can use just CSS to do this statically. The PHP part (hense the class) is for creating the progress bar dynamically. (for example considering the example above, the filespace can be obtained through php)

...in effect this is a "static" progress bar -- and yes, I know that is a contradtictory statement ;-)

Let me know if you have any questions.

  3. Re: All of the PHP is a just a waist,...   Reply   Report abuse  
Picture of Andrey Nikishaev Andrey Nikishaev - 2008-07-16 05:17:22 - In reply to message 2 from Sean Dempsey
javascript+simple php and that's all.
I don't see this usefull

  4. Re: All of the PHP is a just a waist,...   Reply   Report abuse  
Picture of Evan Byrne Evan Byrne - 2008-07-16 14:35:52 - In reply to message 1 from Evan Byrne
It doesn't even use javascript it is just a moving image used as a background. To make a true HTML progress bar you would have to use AJAX.

  5. Re: All of the PHP is a just a waist,...   Reply   Report abuse  
Picture of Sean Dempsey Sean Dempsey - 2008-07-16 15:09:34 - In reply to message 1 from Evan Byrne
All these comments are valid. Again--this "animated" portion of this progress bar is not really needed (gives the user a poor indication of what's happening). I'll turn this off as the default view.

The more practical way of using this bar is without the animation. ("static view"). This should make more sense to you.

Consider the example on this page:
seandempsey.com/clients/verite.php

I am calculating the "days left" in the clients support package using PHP (a difference of dates) and then comparing this to total days purchased. Using the class to do the "visualize" part is a one liner.

To me this class is helpful. If you don't find it such, you do not have to use it.

  6. Re: All of the PHP is a just a waist,...   Reply   Report abuse  
Picture of Evan Byrne Evan Byrne - 2008-07-16 17:37:12 - In reply to message 1 from Evan Byrne
Now that is a way more practical way of using this class. The way demonstrated was not. You should change the example included with the class.

 
For more information send a message to info at phpclasses dot org.