Hey Guys, anyony know how to make progress bars in ASP?
Here is the background... Its an online course and there is anywhere from 30 to 70 pages and I wanted to create a progress bar so they new how much they had left to complete. Maybe percentage, with a graphic...
Thanks..An interesting request. I once wrote something similar for our company intranet but that was a progress bar based on pages being defined in batches of 10 records from a recordset.
We had a table 100 cells wide with a transparent gif 1 pixel wide in each cell - you then simply pass in a session variable (or something like that) detailing the page number and have somewhere a second variable storing the number of total pages. Calculate the percentage complete from these two figures and then in the table do a FOR...NEXT loop changing the bgcolor of each cell (each one representing one percent complete).
I can't recall the exact code but I could possibly try to write it again - it all depends on whether you have the ability to discern the total number of pages, and the current page number or not.Yes, I will be able to determine the total page number and the current page number...
Thanks for your replyGlad to be of service...
If I can get at the code (not in the office today you see) I'll post it up at some point in the future - it might prove interesting to somebody.
TTFN
Here is the background... Its an online course and there is anywhere from 30 to 70 pages and I wanted to create a progress bar so they new how much they had left to complete. Maybe percentage, with a graphic...
Thanks..An interesting request. I once wrote something similar for our company intranet but that was a progress bar based on pages being defined in batches of 10 records from a recordset.
We had a table 100 cells wide with a transparent gif 1 pixel wide in each cell - you then simply pass in a session variable (or something like that) detailing the page number and have somewhere a second variable storing the number of total pages. Calculate the percentage complete from these two figures and then in the table do a FOR...NEXT loop changing the bgcolor of each cell (each one representing one percent complete).
I can't recall the exact code but I could possibly try to write it again - it all depends on whether you have the ability to discern the total number of pages, and the current page number or not.Yes, I will be able to determine the total page number and the current page number...
Thanks for your replyGlad to be of service...
If I can get at the code (not in the office today you see) I'll post it up at some point in the future - it might prove interesting to somebody.
TTFN