i am developing a project in which i have a sidebar with a time elapsed timer on it.
which on click get started and on stop record the elapsed time to database, working fine.
Now the problem is that when user is on home page start the timer it start running but as you move on any other page there will
new unstarted timer.
I am using <jsp:include> to include that side bar with timer, on my pages.
Can any body please guide me to solve this problem.
Actually what i want to code is, when a button get clicked a timer get started which calculates and show the elapsed time to user,
when user wants he click the button(indication that he finished the job) timer get stopped and record the time in database.
How to change the session value every second.
No i just want to display a timer i want this change to take place on page only and just store the final elapsed time on server in database.
Problem is only that i explained in my first post of this topic.
If you store the timer info in the session, all pages can "share" the same timer. (Not really, but if each timer on each page is in synch, it looks like a single timer.)
My point is that you don't need to keep changing the timer value in the session. Think about it -- I mean really think about it. What information would you need to store in the session to know how to create a timer on each page that has the same value as all the others, without having to keep updating the session?
By the way, is this a count-down or a count-up timer?