SitePoint Sponsor

User Tag List

Results 1 to 5 of 5
  1. #1
    SitePoint Addict kunalraj's Avatar
    Join Date
    Nov 2008
    Posts
    200
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    how can i start countdown timer on every login/logout?

    helllo friends,

    I am working on another project is online examination using jsp/servlet.
    i have work on the project flow,
    but i am not getting idea on how can i set count down timer?

    --> I am thinking on first i have to get user`s system date from that i have to start timer and when countdown time over it display message.
    But what should i have to do when user close browser window or logout or etc. means how can i start from their remaining time?

    If any one have any idea or example it will appreciated.

    Thanks
    Kunal

  2. #2
    SitePoint Wizard rozner's Avatar
    Join Date
    Oct 2002
    Location
    Paris
    Posts
    1,058
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    I'm really confused. What are you trying to do?

  3. #3
    SitePoint Addict kunalraj's Avatar
    Join Date
    Nov 2008
    Posts
    200
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    I have two question.

    1). How can i set count down timer for my online examination application?
    Means all candidate have 2hour time period for complete their exam.
    so i have to put count down timer for that.
    when complete exam then time will zero.
    2). If candidate have not complete exam and close browser or due to some circumstances or logout before time over than timer show left time of candidate.


    thanks
    kunal

  4. #4
    SitePoint Wizard silver trophy rushiku's Avatar
    Join Date
    Dec 2003
    Location
    A van down by the river
    Posts
    2,056
    Mentioned
    0 Post(s)
    Tagged
    1 Thread(s)
    If I understand you, you want a countdown timer that persists across multiple pages and you need a way to retain the remaining time, should the user close their browser before they're finished?

    As this is reliant on the client, you'll need to use javascript. You can build a countdown timer with javascript and should be able to report back to the app with the body onunload trigger.

  5. #5
    SitePoint Addict kunalraj's Avatar
    Join Date
    Nov 2008
    Posts
    200
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    yes friends exactly you understand.

    thank you for guide me i am going to work on your suggestion.


Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •