Jump to content

Progress meters of a different kind


neogranas

Recommended Posts

Please hear me out for just a moment.

 

I am very new to javascript/ajax, and as I understand it, ajax would be what I need for this idea I've had. If I am wrong, please proceed to beat me with the manual so that I can know where to look. What I want to do is have 3 progress meters filled with a two color gradient.

 

The first bar I want to just randomly select a value between two numbers, then select a random time to wait between two other values before regenerating the first number. Example: it would pick between 80 and 100, then pick an amount of time to wait before picking another number to display. I want that number to be the percentage to fill in this meter.

 

The second bar I want to start at a value I specify in an XML file and have it slowly degrade throughout the day starting from a certain time of day. Then I want a button I can hit to start filling it up again until that original time.

 

The third bar I want to fill at a rate that starts on one day and ends on another. This will pretty much never change, I just want to set it once then not worry about it again.

 

Where can I look or what can I look for to do this? Would it be better to use just javascript instead of ajax? Every time I do searches for ajax progress bar or meter it brings me to upload tutorials, which aren't what I want.

 

I appreciate the time it takes to read this and respond, so thank you.

 

 

Link to comment
Share on other sites

I had a chance to talk to some co-workers who know much more about this than I do, and they got me thinking about how long it would take to update any of the bars. It seems that the time between any increment/decrement would be far enough between than a refresh would occur more than once in almost any situation so I don't need ajax, but rather fill the meters using javascript or php-gd. Thank you anyway for the people who read this.

Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.