auction timer countdown

Discussion in 'JavaScript' started by aras, May 19, 2009.

  1. #1
    Hey guys,

    Im trying to do an auction count down with Ajax.
    It should be very accurate as seconds precisely will matter in this app.

    What i do is, making a setTimeout every sec. But i am not sure, due to the nature of js maybe, its not always counting 1 by 1. Sometimes it stops and suddenly decrements 2 secs.

    The ajax post file is a very simple php file doing a basic timestamp - time(). I tried to play with the timeout, and i set it to 935. It still does the skipping, but it looks like its better then 1000.

    I can post the code but i was wondering if any of you guys ran into something like this.

    checkout swoopo.com for a running example of it.
    Thanks
     
    aras, May 19, 2009 IP
  2. JavaScriptBank.com

    JavaScriptBank.com Peon

    Messages:
    141
    Likes Received:
    4
    Best Answers:
    0
    Trophy Points:
    0
    #2
    JavaScriptBank.com, May 19, 2009 IP