Email conversation
From | Lionel Sauron |
To | Me |
Subject | I have had a modification in your ProgressBar Script |
Date | 5 April 2004 19:56 |
Hello thanks for your code
for the ProgressBar in javascript I add a function to get the value of the
bar in order to have a progress bar controled by a set interval method...
so i just add a little function in your code
function getBarValue() {
return this.amt;
}
From | Me |
To | Lionel Sauron |
Subject | Re: I have had a modification in your ProgressBar Script |
Date | 6 April 2004 09:34 |
Lionel,
Thanks for the info, and glad you like the script.
I can see where a method might be useful, but it is not entirely necessary,
as you can always read:
progressbar.amt
I know that in a perfect world, I should use methods to prevent
modification on amt but this is JavaScript, and the variable is not
protected anyway, so the method is unnecessary.
I will, however, update the comments to show the progress of the bar can be
read.
Thanks again
Mark 'Tarquin' Wilton-Jones - author of http://www.howtocreate.co.uk/