tag:blogger.com,1999:blog-34454975.post1694923960831161065..comments2023-06-28T16:58:41.189+02:00Comments on Web Reflection: Simple setTimeout / setInterval extra arguments IE fixAndrea Giammarchihttp://www.blogger.com/profile/16277820774810688474noreply@blogger.comBlogger12125tag:blogger.com,1999:blog-34454975.post-12390806064361903382013-02-26T11:07:36.956+01:002013-02-26T11:07:36.956+01:00Thank you. Thank you.Thank you. Thank you.Jay ZZZZhttps://www.blogger.com/profile/13319010692204105196noreply@blogger.comtag:blogger.com,1999:blog-34454975.post-86889404458887494512011-02-11T13:53:58.723+01:002011-02-11T13:53:58.723+01:00Works like a charm! Exactly what I was looking for...Works like a charm! Exactly what I was looking for! Thanks a lot!Jenshttp://webdevwonders.comnoreply@blogger.comtag:blogger.com,1999:blog-34454975.post-14197953426983014602010-05-11T09:44:56.686+02:002010-05-11T09:44:56.686+02:00Please Andrea, can you update your post code with ...Please Andrea, can you update your post code with the comment-backward-compat-version?<br /><br />thanks! :-)Anonymousnoreply@blogger.comtag:blogger.com,1999:blog-34454975.post-74251179486736825382009-03-04T10:29:00.000+01:002009-03-04T10:29:00.000+01:00Hey, you rox!! thanks for that funcion, it work pe...Hey, you rox!! thanks for that funcion, it work perfect for me :)Anonymousnoreply@blogger.comtag:blogger.com,1999:blog-34454975.post-91194453355448416562007-10-24T17:21:00.000+02:002007-10-24T17:21:00.000+02:00Thank you very much for this, it worked perfectly ...Thank you very much for this, it worked perfectly for me.Anonymousnoreply@blogger.comtag:blogger.com,1999:blog-34454975.post-31817099737505840522007-10-24T01:12:00.000+02:002007-10-24T01:12:00.000+02:00Thanks for the help. I've been searching for a cou...Thanks for the help. I've been searching for a couple of weeks and found your solution. Does exactly what I needed. You rock!Anonymousnoreply@blogger.comtag:blogger.com,1999:blog-34454975.post-81821492384126416102007-10-06T02:19:00.000+02:002007-10-06T02:19:00.000+02:00Hi Andrea,Again, much appreciation for your effort...Hi Andrea,<BR/><BR/>Again, much appreciation for your efforts, that was perfect!<BR/><BR/>Thanks.<BR/>Anubis.Anonymousnoreply@blogger.comtag:blogger.com,1999:blog-34454975.post-9978580822022477622007-10-04T06:56:00.000+02:002007-10-04T06:56:00.000+02:00Hi Anubis, probably this version should be useful ...Hi Anubis, probably this version should be useful for your goal ?<BR/><BR/>/*@cc_on<BR/>(function(f){<BR/> window.setTimeout = f(window.setTimeout);<BR/> window.setInterval = f(window.setInterval);<BR/>})(function(f){<BR/> return function(c,t){<BR/> var a = Array.prototype.slice.call(arguments,2);<BR/> if(typeof c != "function")<BR/> c = new Function(c);<BR/> return f(function(){<BR/> c.apply(this, a)<BR/> }, t)<BR/> }<BR/>});<BR/>@*/Andrea Giammarchihttps://www.blogger.com/profile/16277820774810688474noreply@blogger.comtag:blogger.com,1999:blog-34454975.post-24167565206947016832007-10-04T05:15:00.000+02:002007-10-04T05:15:00.000+02:00Hello Andrea,I have implemented your coding and it...Hello Andrea,<BR/><BR/>I have implemented your coding and it works fantastically! One thing though, I have used the string version of window.setTimeout in many other places, is there a way to alter your cc function to detect for two arguments and if there is only two specified, use the standard setTimeout behavior and eval the string? Would just add a little backward compatibility...<BR/><BR/>Thanks again for such a useful piece of info!Anonymousnoreply@blogger.comtag:blogger.com,1999:blog-34454975.post-21434011291772347442007-07-12T19:59:00.000+02:002007-07-12T19:59:00.000+02:00Hey there, Andrea!Sounds like a good idea, but I t...Hey there, Andrea!<BR/>Sounds like a good idea, but I tried it and simply can't make it work.<BR/><BR/>Not even your sample code.<BR/>Any clues ?Unknownhttps://www.blogger.com/profile/14009971125948693937noreply@blogger.comtag:blogger.com,1999:blog-34454975.post-57261609453233198302007-06-16T13:56:00.000+02:002007-06-16T13:56:00.000+02:00this time conditiona comments are a must to don't ...this time conditiona comments are a must to don't change every other browser behaviour but if You prefere, You could use <I>old good</I> if(window.ActiveXObject)<BR/><BR/>:DAndrea Giammarchihttps://www.blogger.com/profile/16277820774810688474noreply@blogger.comtag:blogger.com,1999:blog-34454975.post-20111735871423155592007-06-16T13:42:00.000+02:002007-06-16T13:42:00.000+02:00you can't be andrea! who are you??Andrea will neve...you can't be andrea! who are you??<BR/>Andrea will never use conditional comment.......<BR/><BR/><BR/><BR/>:pheasant:kentaromiurahttps://www.blogger.com/profile/01628828429767241919noreply@blogger.com