Monthly Archives: December 2007

Quine using XHTML and JavaScript

Programming Hilarity! He has a generator, and a pre-generated example. Wait, what’s a quine, you say? In computing, a quine is a program, a form of metaprogram, that produces its complete source code as its only output. – Courtesy of Wikipedia: Quine (computing)
Posted in JavaScript | Tagged | Leave a comment

Faster YUI DataTable with 5 Lines of Code

Holy Reflows Batman! The typical usage of a DataTable in the Yahoo User Interface JavaScript library involves passing a string into the constructor signifying the ID attribute of the container you want to attach the DataTable to. However, the YUI DataTable loves the DOM and creating nodes individually using DOM methods. Normally that’d be fine, [...]
Posted in JavaScript | Tagged , , , | 1 Comment

enterval, an automatic setInterval chainer.

Hello internet. Today we’ll be exploring the magical wonders of setInterval. Have you ever worked on a project that needed multiple timers going simultaneously? Have you ever wanted to bind all of those timer callbacks into just one timer without restructuring your code manually? Well, being the Curious George that I am, I wanted to [...]
Posted in JavaScript | Tagged | Leave a comment

Problems with Looping through window.setInterval

Look at this code. What do you expect to be the outcome?
Posted in JavaScript, Web Browsers | Tagged , | 3 Comments