Welcome
The Nomad blog is where we share news of our projects, thoughts on web development and a weekly round up of things on the Internet that have caught our eye - Tales from the Internet
Tag Cloud
2011 accessibility adobe shadow agencies amazon apple arduino backups bears blog boo book review browsers business cablegate captcha charity clients code igniter code snippets community conference contracting cooperation csharp css css3 development dojo dyson eeuk expression engine free full frontal gaming git honey pots html5 installation internet internet explorer ipad iphone java javascript jquery linux little printer ludum dare micro frameworks mobile mono monotouch multi-touch mvc news nomad opengl organic osx passwords performance php process pseudo selectors rdf recovery remote repository responsive design review s3 security seo silverstripe spam spime sublime text 2 svn technology tfi tools trust truth underscore url shortening usability version control wii wikileaks windows
Viewing entries tagged with 'mvc'
An MVC Approach to Table Sorting
Sorting data is a useful feature for tabular data in any web app. This is much easier to do if you separate the underlying data from the HTML of the table. The simplest way to achieve this is to take an Model View Controller approach (or MV in our case as we won't need a controller) utilising the observer programming pattern. This will allow us to decouple the data (model) from the table (view). All the view really needs to know is what the data contains and when it changes, not how it was changed.