Titanium Community Questions & Answer Archive

We felt that 6+ years of knowledge should not die so this is the Titanium Community Questions & Answer Archive

setInterval doesn't seems to work at all

Hi

I have something like

Interval_ID = setInterval ( "DoSomething()", 7000 ); // runs every 7 seconds

function DoSomething()
{
// my actions
}

DoSomething never gets called… why?

— asked March 29th 2010 by Peter Lum
  • setinteval
0 Comments

2 Answers

  • Accepted Answer

    try this:

    Interval_ID = setInterval(function() {
    // actions 
    } , 7000 ); // runs every 7 seconds
    
    — answered March 29th 2010 by Glenn Tillemans
    permalink
    0 Comments
  • Thanks! it works now!

    — answered March 29th 2010 by Peter Lum
    permalink
    0 Comments
The ownership of individual contributions to this community generated content is retained by the authors of their contributions.
All trademarks remain the property of the respective owner.