Your leaking thatched hut during the restoration of a pre-Enlightenment state.

 

Hello, my name is Judas Gutenberg and this is my blaag (pronounced as you would the vomit noise "hyroop-bleuach").



links

decay & ruin
Biosphere II
Chernobyl
dead malls
Detroit
Irving housing

got that wrong
Paleofuture.com

appropriate tech
Arduino μcontrollers
Backwoods Home
Fractal antenna

fun social media stuff


Like asecular.com
(nobody does!)

Like my brownhouse:
   20107
Monday, February 26 2007

Today I resurrected some Javascript code I'd written as part of an ill-fated community calendar project (for the ill-fated Comet.net) back in late 1997. I used this code to devise a Javascript-based calendar in a modern web application I'm building. Perhaps surprisingly, the code only required some simplifying and reformatting to be useful more than nine years later. As written, the code also had a rather glaring Y2K problem that manifested when it attempted to write the current year, which it referred to as "20107."
(By the way, the calendar I use for archive navigation in Asecular.com is written entirely in PHP and its formatting is calculated entirely by the server. In the first iteration of the present calendaring application, I used that PHP code. But the Javascript version is much more responsive.)
The advantage of Javascript in a calendar application is that it can be rendered entirely by the browser, leaving the server to do other things that don't require it to send kilobytes of formatting with every flip of the month. Of course, a useful calendar also requires information from a database, something my calendar gets through AJAX-style communications (though I cheat and, instead of XML, I deliver my data in pipe-delimited strings, and I make DOM alterations from tiny IFRAMEs).


For linking purposes this article's URL is:
http://asecular.com/blog.php?070226

feedback
previous | next