User Name Password Register
DaniWeb IT Discussion Community
All
What is DaniWeb IT Discussion Community?
DaniWeb is a massive community of 427,940 software developers, web developers, Internet marketers, and tech gurus who are all enthusiastic about making contacts, networking, and learning from each other. In fact, there are 2,617 IT professionals currently interacting right now! Registration is free, only takes a minute and lets you enjoy all of the interactive features of the site.
Showing results 1 to 1 of 1
Search took 0.00 seconds.
Posts Made By: wuzhiye
Forum: JavaScript / DHTML / AJAX Apr 17th, 2008
Replies: 5
Views: 986
Posted By wuzhiye
Re: setInterval inside function issue

you can do like this:

function foo(param1, param 2){
var me = this;
this.bar=function(){
this.intervalID=setInterval(function(){me.fbar.call(me);},5000);
...
Showing results 1 to 1 of 1

 
All times are GMT -4. The time now is 6:47 pm.
Forum system based on vBulletin Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
©2003 - 2008 DaniWeb® LLC