what i want to do is this:
function foo(param1, param 2){
[INDENT]this.bar=function(){
[INDENT]this.intervalID=setInterval(this.fbar,5000);[/INDENT]
}
this.fbar=function(){
[INDENT]//(do stuff with the properties of "this"
alert(this.intervalID);[/INDENT]
}
[/INDENT]
}
but setInterval will not carry over the properties of "this".
when this happens:
var apple=new foo(5,27);
apple.bar();
i need apple.fbar(); to repeat automatically by force of apple.bar();
note: fbar does not have to be inside of the foo function but i do need to get all of "this"'s properties to it durring a setInterval
thanks for the help!