tag:blogger.com,1999:blog-12198751.post111393014867065117..comments2023-08-25T20:05:31.547+08:00Comments on Star Tech Corner: JavaScript: setInterval() problemShanehttp://www.blogger.com/profile/06860016499964622617noreply@blogger.comBlogger5125tag:blogger.com,1999:blog-12198751.post-46195716392978647082013-01-04T03:08:10.628+08:002013-01-04T03:08:10.628+08:00THX a lot!THX a lot!Christophnoreply@blogger.comtag:blogger.com,1999:blog-12198751.post-92094805539516259002011-07-20T05:50:45.989+08:002011-07-20T05:50:45.989+08:00thanx a ton dude ...was stuck here ..now everythin...thanx a ton dude ...was stuck here ..now everythings clear.....karynoreply@blogger.comtag:blogger.com,1999:blog-12198751.post-6478698517564696992009-03-10T14:31:00.000+08:002009-03-10T14:31:00.000+08:00Try this:function myObject() { this._speed = 400...Try this:<BR/><BR/>function myObject() <BR/>{<BR/> this._speed = 4000;<BR/> this._intID = 0;<BR/>}<BR/><BR/>myObject.prototype.myMethod = function() {<BR/> var instant = this;<BR/> this._intID = setInterval(function() { instant.aotherMethod(); }, this._speed);<BR/>}<BR/><BR/>myObject.prototype.aotherMethod= function() {<BR/> alert("It works");<BR/>}nomadicdoghttps://www.blogger.com/profile/09448616980321976085noreply@blogger.comtag:blogger.com,1999:blog-12198751.post-23801117125521188032007-08-27T15:55:00.000+08:002007-08-27T15:55:00.000+08:00I'll second the "THANK YOU!!! THANK YOU!!!" This c...I'll second the "THANK YOU!!! THANK YOU!!!" This code fragment clarified a lot for me too. Now, off to do some cool JQuery tricks...Anonymousnoreply@blogger.comtag:blogger.com,1999:blog-12198751.post-45248607936100629322007-05-13T15:48:00.000+08:002007-05-13T15:48:00.000+08:00THANK YOU!!umm...could u suggest more about referr...<B>THANK YOU!!</B><BR/>umm...could u suggest more about referrence and gabarge collector<BR/><B>THANK YOU!! again :)</B>Anonymousnoreply@blogger.com