18th Dec 2014

Ultimate date / time sorting plug-in

Date and time can be represented in almost limitless ways with different formats used to show a data point to end users. A long format such as "Thursday, 18th December 2014" might be used in cases where space is not constrained, but a more concise format might be "18/12/2014" or "12/18/2014" depending upon your location! Ambiguities such as this can lead to significant problems when attempting to order temporal data.

Questions about how to order temporal data correctly are a common feature in the forums, and in this post I'm going to introduce a new plug-in for DataTables that makes it possible to correctly order almost any date / time format using the excellent Moment.js library.

This new plug-in makes use of the formatting options of Moment.js and complex formats can be created using a new $.fn.dataTable.moment() method - for example:

$(document).ready(function() {
    $.fn.dataTable.moment( 'HH:mm MMM D, YY' );
    $.fn.dataTable.moment( 'dddd, MMMM Do, YYYY' );

} );

Continue reading...

4th Dec 2014

Editor 1.4 beta - .NET

When Editor was originally developed, it was clear that a suite of libraries should be available for the server-side that compliment the client-side Javascript library and make installation of the software as simple as possible. At the time it was decided that PHP libraries would be the initial focus (after all, PHP does enjoy a majority market-share). However, the intention has always been to develop libraries for other server-side environments.

I'm delighted to announce today the realisation of that dream with the release of Editor 1.4 beta which adds .NET libraries to the Editor suite of tools. There are also a number of changes in the PHP libraries to increase flexibility and in the Javascript component as detailed below, but the primary focus for this release is the new .NET libraries.

Continue reading...

7th Nov 2014

Table captions

There are many under-used, or under-rated, tags in the HTML specification, but one that is of particular interest to us in tabular display is the caption tag.

This little known element provides the ability to label a table with information that provides a summary for the data that is presented in the table. An example might be "Staff database" in an internal system, or "School results 2013-2014" in a news article.

The caption element provides context to the table in a document, and this post will explore how it can be used and styled in a DataTable, which has full support for captions.

Continue reading...

Historic blog posts