Website - Dynamic Countdown + Function Call

Discussion in 'Programming' started by voidgeek, Jul 21, 2009.

  1. #1
    So I have a question and I want to keep security in mind as well as ease of use... Is there any way to have a queue on a webpage, and on that queue to show a countdown (2h, 1m, 23s)... and once that hits 0s left to perform a function to send values to a database (mysql)?

    The first in queue would then disappear and the second would be shifted up, all without refreshing the page?

    I first assumed that Ajax was the way to go but now I am not too sure.
     
    voidgeek, Jul 21, 2009 IP
  2. stOK

    stOK Active Member

    Messages:
    114
    Likes Received:
    2
    Best Answers:
    0
    Trophy Points:
    53
    #2
    Yes. Ajax can treat the task.
    If you would not need send external request to DB you could accomplish it with simple javascript.
     
    stOK, Jul 22, 2009 IP