Lionel Sauron

Navigation

Skip navigation.

Search

Site navigation

Email conversation

FromLionel Sauron
ToMe
SubjectI have had a modification in your ProgressBar Script
Date5 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;
}
FromMe
ToLionel Sauron
SubjectRe: I have had a modification in your ProgressBar Script
Date6 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/
This site was created by Mark "Tarquin" Wilton-Jones.
Don't click this link unless you want to be banned from our site.