Web Analytics Made Easy -
StatCounter javascript timed repeat - CodingForum

Announcement

Collapse
No announcement yet.

javascript timed repeat

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • javascript timed repeat

    is it possible using javascript to have a function carried out every 30seconds?

    i want my ajax to connect to the server every 30seconds to check for updates.. is this possible?


    thanx

    EDIT:
    found it

    Code:
    interval = setInterval("alert('something')",'1000')
    alerts "something" every 1 second (1000 milliseconds)
    Last edited by goughy000; Oct 8, 2006, 12:44 PM.
    PHP Freelancing!
    ByteForums!
    Scriptlance.comNeed a job done quick? post it on scriptlance! OR! your a programmer? sign up and get paid for these jobs!
Working...
X