Posts

Showing posts from September, 2014

Child rows (show extra / detailed information)

The DataTables API has a number of methods available for attaching child rows to a  parent  row in the DataTable. This can be used to show additional information about a row, useful for cases where you wish to convey more information about a row than there is space for in the host table. The example below makes use of the  row().child DT  methods to firstly check if a row is already displayed, and if so hide it ( row().child.hide() DT ), otherwise show it ( row().child.show() DT ). The content of the child row is, in this example, defined by the  formatDetails()  function, but you would replace that with whatever you wanted to show the content required, possibly including, for example, an Ajax call to the server to obtain the extra information to show. Show  10 25 50 100  entries Search: Name Position Office Salary Zorita Serrano Software Engineer San Francisco $115,000 Zenaida Frank Software Engineer New York $125,250 Yuri Berr...

How To Code a Sortable Table with jQuery

Image
There is a small handful of free open source jQuery plugins to help organize special tables. More specifically these plugins offer unique & dynamic functionality such as pagination, row highlighting, and column sorting. The ability to sort your data is crucial when looking for patterns. It may also help you see the information from a different perspective altogether. So for this tutorial I want to demonstrate a very simple plugin using an HTML table. Some plugins require you to create the table in JSON, but it is often easier to work with something that can tie into HTML on the page. I’ll be using the  jQuery Tablesorter plugin  which is free to download and use on any number of projects. Take a peek at my live sample demo below. Live Demo   Download the Source Page Structure The first step is to download a copy of the Tablesorter plugin along with a local copy of  jQuery . Now tablesorter is hosted  on Github  but you can also find a downl...

I belive whatever doesn’t make you kill simply makes you a stranger

Image
With many so-so sequels and prequels hitting theaters this summer, its a good time to remember the mother of all superhero/action sequels The Dark Knight. Heath Ledger’s performance as The Joker will live on forever as one of the greatest characters in cinema history. Below is a collection of the 13 best quotes (or in some cases memorable dialogue) by The Joker in The Dark Knight. I doubt we are missing much, but feel free to offer your two cents on the ranking. 13.  I believe whatever doesn’t kill you, simply makes you… stranger . 12 . All right. So, listen. Why don’t you give me a call when you want to start taking things a little more seriously? Here’s my card. 11 . Joker: Oh, you. You just couldn’t let me go, could you? This is what happens when an unstoppable force meets an immovable object. You are truly incorruptible, aren’t you? Huh? You won’t kill me out of some misplaced sense of self-righteousness. And I won’t kill you because you’re just too much fun. I think yo...

Install Composer

Introduction # Composer is a tool for dependency management in PHP. It allows you to declare the dependent libraries your project needs and it will install them in your project for you. Dependency management # Composer is not a package manager. Yes, it deals with "packages" or libraries, but it manages them on a per-project basis, installing them in a directory (e.g.  vendor ) inside your project. By default it will never install anything globally. Thus, it is a dependency manager. This idea is not new and Composer is strongly inspired by node's  npm  and ruby's  bundler . But there has not been such a tool for PHP. The problem that Composer solves is this: a) You have a project that depends on a number of libraries. b) Some of those libraries depend on other libraries. c) You declare the things you depend on. d) Composer finds out which versions of which packages need to be installed, and installs them (meaning it downloads them into your project...