Hello i had one urgent requirement i want count down timer so that when it reaches an hour from we acessing the page it must thrown an alert your time is completed.And also we must able to store the time also
yaa i thought in your way.But the problem is when user com,eout of that page say after 30 mins he must able to acess is remaning 30 mins on any day so what to do then
so it could be handle by database where you have to store the minutes(which user already used) and retrieve and set this value into javascirpt time function..
Hey saif the risk is how to get the value and store .They are three ways where we can close the page,are we can go to homepage,are we can logout.then what is your idea
Originally posted by satya nath: Hey saif the risk is how to get the value and store.
Yeah you are right.. its not possible to get a value from JavaScript into jsp page.. I don't have much experience in Ajax but I though it could help you to handle this type of conditions..
They are three ways where we can close the page,are we can go to homepage,are we can logout.then what is your idea
calling the same storing method on logout and for close window, implement the unload event in body element. whenever the page is unload this method will call by this event.