how to set to call a function from the current object using settimer
<pre><code>function Something() {
  this.var1 = 0;
  this.var2 = 2;
  this.mytimer;
  this.getCars=function() {
    //some code
  };
  this.start = function(l) {
    this.updateTimer=setInterval("this.getCars();" , 5000);
  };
}

var smth = new Something();
smth.start();
</code></pre>

<p>When I type in this.getCars() it does not work. if the function is global declared and i put in for example just getCars it works.
I don't know how to work out this problem because setInterval becomes as parameter a String.</p>

<p>Can somebody help me put with this?</p>
