typo icon

Displaying Dates and Times Using JavaScript

Posted in , , , , Tue, 06 Feb 2007 00:28:00 GMT

Some considerations when displaying dates and times on a website include showing delta times, customized timezones and caching. Often it's nice to show a delta time like "10 minutes ago" or "5 days ago" to give readers a frame of reference instead of an absolute date. When the date is far enough in the past and an absolute date becomes desired, customizing the date to the user's timezone is useful. And if your site grows large enough that caching becomes useful, finding a way to display customized deltas and timezone information in a cacheable static page becomes an ideal solution.

Read more...
del.icio.us:Displaying Dates and Times Using JavaScript digg:Displaying Dates and Times Using JavaScript reddit:Displaying Dates and Times Using JavaScript spurl:Displaying Dates and Times Using JavaScript wists:Displaying Dates and Times Using JavaScript simpy:Displaying Dates and Times Using JavaScript newsvine:Displaying Dates and Times Using JavaScript blinklist:Displaying Dates and Times Using JavaScript furl:Displaying Dates and Times Using JavaScript fark:Displaying Dates and Times Using JavaScript blogmarks:Displaying Dates and Times Using JavaScript Y!:Displaying Dates and Times Using JavaScript smarking:Displaying Dates and Times Using JavaScript magnolia:Displaying Dates and Times Using JavaScript segnalo:Displaying Dates and Times Using JavaScript

2 comments

typo iconscriptaculous icon

Scriptaculous article slider for Typo themes

Posted in , , , Wed, 12 Jul 2006 06:48:00 GMT

Several Typo themes have nice DHTML effects and I thought it would be useful to extract some of these for use in other themes. In particular I am interested in adding Modernist's DHTML Scriptaculous ScrollTo article slider to my modded Azure theme. You can see this in action at poocs.net which is currently running Modernist. This article covers the steps necessary to repurpose the DHTML article slider and involves templates, CSS and images. I've shown how Modernist does it and, where applicable, how I prefer to do it. It turns out to be pretty easy.

I've added this feature to my test system, however it's not here yet because I've decided to create a custom Dev411_Azure theme to handle the views (and controller/helper patches) for the growing number of mods I'm using rather than to continue manually hacking files under themes/azure and app. This should be here before long.

Read more...
del.icio.us:Scriptaculous article slider for Typo themes digg:Scriptaculous article slider for Typo themes reddit:Scriptaculous article slider for Typo themes spurl:Scriptaculous article slider for Typo themes wists:Scriptaculous article slider for Typo themes simpy:Scriptaculous article slider for Typo themes newsvine:Scriptaculous article slider for Typo themes blinklist:Scriptaculous article slider for Typo themes furl:Scriptaculous article slider for Typo themes fark:Scriptaculous article slider for Typo themes blogmarks:Scriptaculous article slider for Typo themes Y!:Scriptaculous article slider for Typo themes smarking:Scriptaculous article slider for Typo themes magnolia:Scriptaculous article slider for Typo themes segnalo:Scriptaculous article slider for Typo themes

2 comments