php - Need multiple independent timers in Ajax -


I need the ability to create N zodiac timers in JavaScript / Ajax which will be counted like a stopwatch (but there are no buttons in it is not ).

Another issue is that my data will be loaded through another Ajax request so that the page will be constantly updated. I'm not sure how the timer value can be kept as it happens.

Thank you!

Javascript already has this functionality checkout

  set interface set The timeout  

both of you call "Ms. X number, I want to fire the following callback function". With setTimeout , the callback once appears to be a fire, with the setInterval , the callback goes on and off again until you call it to stop.


Comments

Popular posts from this blog

iphone - How do I make a UIPickerView in a UIActionSheet -

java - Is there an object like a "Set" that can contain only unique string values, but also contain a count on the number of occurrences of the string value? -