JS Table Sorting for BBC Glow – v1.3 (Updated)

6

Posted by Rob | Posted in BBC Glow, Code, Javascript | Posted on 01-04-2010

Tags: , , ,

Morning all, I’ve recently started working for the BBC, and as such I’ve started working with the internal JavaScript framework, Glow.

So this is my first attempt at writing to some code with it. I hope it’s useful to someone. It’s just a simple JavaScript table sort.

The Introduction

Just a bit of useful script for client side sorting of tables. Simple click the headers of the columns, and it will arrange it in ascending order. A second click will arrange it in descending order.

UPDATE – 30th July 2010: After talking with a BBC colleague, it occurred to me that I could improve the code, so that it doesn’t rely on the class names for the ordering. The class names are now purely for decoration, not functionality.

UPDATE 2 – 30th July 2010: It was just pointed out by James (thanks man), that Glow/JS doesn’t handle number sorting brilliantly, so I’ve added a small patch to improve this. Thanks to James for his suggestion.

UPDATE 3 – 3rd August 2010: Some alterations to improve sorting of floats.

Read the rest of this entry »

2 people like this post.

Roundup

0

Posted by Rob | Posted in Code, Hardware, Movies, Rebuild, Server, Terry Pratchett | Posted on 18-07-2010

Tags: , , ,

I’ve been pretty busy of late, so I thought I would just write a quick recap of whats been going on, and what happened with previous posts.

Epic Server Rebuild – The Prelude

This has almost stalled because of some MAJOR problems with the existing hardware. It’s all running again, but the server doesn’t have automated downloading right now, and the media center is currently running from my spare Acer Revo.

Terry Pratchett’s Going Postal

Now, much to my dissappointment, this was all in all a “Meh!” film. I was far more impressed with Hogfather than Going Postal. It felt like they were simply going through the motions. The film had the essence of the book, but left out so much story, that they have to fabricate sections just to tie what was left together.

Last Airbender Movie

Oh dear LORD what did they do to my beloved Airbender?! It was obvious that not one of the cast had watched even a single episode of the original show. This was just, plain and simply, painful! Sometimes I forget, what a powerful bender M. Night Shyamalan is.

Prince Of Persia Movie

Now, on the other hand, I liked this, simply because they managed to take the basic story of the prince of persia, and turn it into a good film. Most people will hate this because it doesn’t follow the story of the game, but I personally think that game stories don’t work in movies. I believe that this was a pretty good attempt. Not the best, but certainly not the worst.

Coming up

I’ve added a new section to the site, Presentations, which I will be filling with any presentations I do for work, or at conferences, if I ever get the chance. The first talk will be about “Internal Design”, and how disciplined coding principles will help yourself and others who work on the project.

Epic Server Rebuild – The Prelude

0

Posted by Rob | Posted in Hardware | Posted on 26-05-2010

Tags: , , , , , ,

I should explain that at home, I’ve got a central server which was a gaming pc 4 years ago.  It’s served me really well over the years for both of it’s jobs.  But we’ve reached a point where it needs an overhaul, inside and out.  It’s currently a 7tb media server, which over the years has been experimented on for various tasks.

So the First Stage of all this is to clean up the current server, physically. Read the rest of this entry »

3 people like this post.

Terry Pratchett’s Going Postal – Extended Trailer

0

Posted by Rob | Posted in Movies, Television, Terry Pratchett, Trailer | Posted on 26-05-2010

Tags: , ,

Sorry, I’ve had to YouTube this, because Sky haven’t released the Embed code for the video and I don’t want to break any rules. As it is, they have started advertising on their stream, so I wasn’t too happy with adverts getting played on my site

Last Airbender Movie Trailer #2

0

Posted by Rob | Posted in Cinema, Movies, Trailer | Posted on 25-05-2010

Tags: , , , ,

Last Airbender Movie Trailer

0

Posted by Rob | Posted in Cinema, Movies, Trailer | Posted on 07-04-2010

Tags: , , , ,

Last Airbender Trailer #2

I know it’s incredibly geeky childish of me, but I really loved the TV series “Avatar: The Last Airbender”. Brilliant stuff. Something from America which finally comes close to the standard that Japan have been producing for the last 50years.

I’m really looking forward to this, and I know a lot of my friends are too.

Read the rest of this entry »

3 people like this post.