Archive for the ‘JavaScript’ Category

setTimeout with class method

December 26, 2009Josh Brown View Comments

There are already a few solutions floating around on how to make setTimeout or setInterval call a method in your class.  The typical solution involves a intermediate parameters and arbitrary functions.  Here is mine:
setTimeout( function(o) { o.method() }, 1000, this );

It creates an intermediate function which accepts your instance from the parameters and calls your [...]

Read More »

Block your ad blockers

October 7, 2009Josh Brown View Comments

Some people place ads on their site to get some unneeded revenue from their visitors.  Some cover their site in ads with no reputable content.  Some just need to cover their expenses, and in return provide some decent content you may need.  That last one is me.  I block visitors who block my ads, because [...]

Read More »