Forum Moderators: open
I want to create a 'Progress Bar' similar to the one found on legalzoom.com. If you go to legalzoom.com, and chose a legal document to fill out [just create a fake email address and password to get in], you'll see a Progress Bar at the top of each page. There are many different choices in the course of filling out any particular document, so the total number of pages will vary from customer to customer. So the Progress bar must be dynamic, to show the client how many forms he has left to fill out. Still it's only an approximation of the client's progress, but this will be good enough for my needs.
Does anyone know how this is done? I'm not sure if it's done in JavaScript or ASP. If you look at the source code, or download the progress bar image, you'll see it's a very small .gif, that is added and added as progress is made, I think. It looks like JavaScript, but I'm not positive.
Any guidance on this matter would be much appreciated. A tutorial somewhere, maybe?
Thanks very much
I'm thinking in order to be truly dynamic, i.e. changes according to the users actions, it may have to be done in ASP or something.
Thanks
to change a progressbar with javascript u need in a head:
function changeprogress(newprocent)
{newtr=document.getElementById('newtable');
newtr.childNodes[0].innerHTML=newprocent+'%';
newtr.childNodes[0].style.width=newprocent+'px';
newtr.childNodes[1].innerHTML=eval(100-newprocent)+'%';
newtr.childNodes[1].style.width=eval(100-newprocent)+'px';
}
in a body:
<script>
changeprogress(20); //to set 20 percent progress
</script>
good luck to you
I don't know how this would be possible with JS, it seems like this is something the server would have to keep track of meaning it must be done in ASP or some other serverside language.
Please tell me if I'm wrong. Thank you.