Monday, May 24, 2010

I developed a JavaScript countdown clock in ASP page which is set for 35 min.Now i want that?

I developed a JavaScript countdown clock in ASP page which is set for 35 min.Now the problem is that when the user clicks next button the page is reloaded and the clock starts again from 35 min.Tell me how can i solve this problem.

I developed a JavaScript countdown clock in ASP page which is set for 35 min.Now i want that?
I think u can go with a cookie or session.


What u have to do is when the user clicks next button, u have to store the current timer value in a cookie or in a session variable.


And When u r loading the page, u have to look for the cookie or the session variable. If it is there then start with the value there else start afresh.
Reply:wat u can do is whichever asp page calls this java script, put a hidden variable on that asp which stores the last value of this timer and when the jsp is called, the jsp should access this hidden variable instead of resetting the timer. i hope you got it.


No comments:

Post a Comment