I have a status bar which I use javascript to update with progress. I take
the duration of the event and calculate the % which is complete and then use
that as the width attribute for a <td>. There are two <td>'s, the first for
the completed progress and the second to hold the remaining time.
What I would like to be able to do is overlay the graphic (bar graph) with
text as to the amount of time passed and the duration of the event (eg
02:27 / 03:54).
Is this possible? The "progress meter" is part of a dragable panel (Ajax
toolkit).
Thanks
Lloyd Sheen
Hi Lloyd,
Your question indicates some advanced work with .NET and I am guessing you
have mucho more experience than I do.
Anyway, if you haven't found your answer yet, at the risk of sounding
stupid:
If you are using the bar graph graphic as a background image, what is
keeping you from displaying text between the <td> and </td> tags which will
show up over the background graphic, especially if you center align the
<td>?
Just my 2 cents. I am guessing that what you're doing is too complicated for
such a simple solution to work.
>I have a status bar which I use javascript to update with progress. I take
>the duration of the event and calculate the % which is complete and then
[quoted text clipped - 10 lines]
> Thanks
> Lloyd Sheen
John Kotuby - 08 Feb 2008 18:52 GMT
Addendum...
Since you are setting the width attribute of the table cell from JavaScript
using the DOM you most likely have a reference to the cell and you can use:
theCell.innerHTML = '02:27 / 03:54'
Or you can use a more conventional DOM approach to do accomplish same thing.
> Hi Lloyd,
>
[quoted text clipped - 27 lines]
>> Thanks
>> Lloyd Sheen